projects
/
rune.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Rune - Content-locking work 1/2
[rune.git]
/
tests
/
scope.d
1
#!/usr/local/bin/rune -x
2
#
3
4
limport "sys";
5
import "stdio";
6
7
class Parent {
8
int a = 1;
9
int b = 2;
10
}
11
12
subclass Parent as Child {
13
int a = 50;
14
int c = super.a + 2;
15
int d = b + 2;
16
}
17
18
alias stdio.File *stdout = stdio.stdout;
19
20
int
21
main(int ac, char **av)
22
{
23
Child obj;
24
25
stdout->show("check 1 2 3 4: ", obj.a, obj.b, obj.c, obj.d);
26
return(0);
27
}