annotate nocompile/override_03.d @ 374:f87ba6507260

added missing meta-data
author thomask
date Thu, 31 Mar 2005 09:01:33 +0000
parents 5f98d4a33d49
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
374
f87ba6507260 added missing meta-data
thomask
parents: 70
diff changeset
1 // $HeadURL$
f87ba6507260 added missing meta-data
thomask
parents: 70
diff changeset
2 // $Date$
f87ba6507260 added missing meta-data
thomask
parents: 70
diff changeset
3 // $Author$
f87ba6507260 added missing meta-data
thomask
parents: 70
diff changeset
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
f87ba6507260 added missing meta-data
thomask
parents: 70
diff changeset
6
f87ba6507260 added missing meta-data
thomask
parents: 70
diff changeset
7 // __DSTRESS_ELINE__ 16
f87ba6507260 added missing meta-data
thomask
parents: 70
diff changeset
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
3269e4627918 init dstress
svnowner
parents:
diff changeset
10
3269e4627918 init dstress
svnowner
parents:
diff changeset
11 class Parent{
3269e4627918 init dstress
svnowner
parents:
diff changeset
12 int check;
3269e4627918 init dstress
svnowner
parents:
diff changeset
13 }
3269e4627918 init dstress
svnowner
parents:
diff changeset
14
3269e4627918 init dstress
svnowner
parents:
diff changeset
15 class Child : Parent{
3269e4627918 init dstress
svnowner
parents:
diff changeset
16 override int check;
3269e4627918 init dstress
svnowner
parents:
diff changeset
17 }
3269e4627918 init dstress
svnowner
parents:
diff changeset
18
3269e4627918 init dstress
svnowner
parents:
diff changeset
19 int main(){
3269e4627918 init dstress
svnowner
parents:
diff changeset
20 Child c = new Child();
3269e4627918 init dstress
svnowner
parents:
diff changeset
21 return c.check;
3269e4627918 init dstress
svnowner
parents:
diff changeset
22 }