Rune - Fix array passing, optimize constant array indices
[rune.git] / tests / scope.d
1 #!/usr/local/bin/rune -x
2 #
3
4 import "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 }