Mercurial > projects > dstress
annotate nocompile/override_03.d @ 1619:bebc7472a832
Fix #7.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 07 Nov 2009 18:55:30 +0100 |
parents | f87ba6507260 |
children |
rev | line source |
---|---|
374 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
70
5f98d4a33d49
1) review of all test cases with unexpected results (except encoding and html/xml)
thomask
parents:
1
diff
changeset
|
5 // override can only be applied to class functions |
374 | 6 |
7 // __DSTRESS_ELINE__ 16 | |
8 | |
70
5f98d4a33d49
1) review of all test cases with unexpected results (except encoding and html/xml)
thomask
parents:
1
diff
changeset
|
9 module dstress.nocompile.override_03; |
0 | 10 |
11 class Parent{ | |
12 int check; | |
13 } | |
14 | |
15 class Child : Parent{ | |
16 override int check; | |
17 } | |
18 | |
19 int main(){ | |
20 Child c = new Child(); | |
21 return c.check; | |
22 } |