annotate run/f/final_12_A.d @ 1320:daef239f37cf

sed'ed replacement of new:...http.d.puremagic.com/issues/ with http://d.puremagic.com/issues/show_bug.cgi?...
author thomask
date Sun, 31 Dec 2006 19:59:08 +0000
parents f272d893dd3e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1197
0e1bf1565db1 [Issue 440] New: dmd.170 fails to mark final methods as implementations of abstract ones
thomask
parents:
diff changeset
1 // $HeadURL$
0e1bf1565db1 [Issue 440] New: dmd.170 fails to mark final methods as implementations of abstract ones
thomask
parents:
diff changeset
2 // $Date$
0e1bf1565db1 [Issue 440] New: dmd.170 fails to mark final methods as implementations of abstract ones
thomask
parents:
diff changeset
3 // $Author$
0e1bf1565db1 [Issue 440] New: dmd.170 fails to mark final methods as implementations of abstract ones
thomask
parents:
diff changeset
4
0e1bf1565db1 [Issue 440] New: dmd.170 fails to mark final methods as implementations of abstract ones
thomask
parents:
diff changeset
5 // @author@ Tomasz Stachowiak <h3r3tic@mat.uni.torun.pl>
0e1bf1565db1 [Issue 440] New: dmd.170 fails to mark final methods as implementations of abstract ones
thomask
parents:
diff changeset
6 // @date@ 2006-10-17
1320
daef239f37cf sed'ed replacement of new:...http.d.puremagic.com/issues/ with http://d.puremagic.com/issues/show_bug.cgi?...
thomask
parents: 1198
diff changeset
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=440
1197
0e1bf1565db1 [Issue 440] New: dmd.170 fails to mark final methods as implementations of abstract ones
thomask
parents:
diff changeset
8 // @desc@ [Issue 440] New: dmd.170 fails to mark final methods as implementations of abstract ones
0e1bf1565db1 [Issue 440] New: dmd.170 fails to mark final methods as implementations of abstract ones
thomask
parents:
diff changeset
9
0e1bf1565db1 [Issue 440] New: dmd.170 fails to mark final methods as implementations of abstract ones
thomask
parents:
diff changeset
10 module dstress.run.f.final_12_A;
0e1bf1565db1 [Issue 440] New: dmd.170 fails to mark final methods as implementations of abstract ones
thomask
parents:
diff changeset
11
0e1bf1565db1 [Issue 440] New: dmd.170 fails to mark final methods as implementations of abstract ones
thomask
parents:
diff changeset
12 int status;
0e1bf1565db1 [Issue 440] New: dmd.170 fails to mark final methods as implementations of abstract ones
thomask
parents:
diff changeset
13
0e1bf1565db1 [Issue 440] New: dmd.170 fails to mark final methods as implementations of abstract ones
thomask
parents:
diff changeset
14 interface I {
1198
f272d893dd3e [Issue 440] New: dmd.170 fails to mark final methods as implementations of abstract ones
thomask
parents: 1197
diff changeset
15 int foo();
1197
0e1bf1565db1 [Issue 440] New: dmd.170 fails to mark final methods as implementations of abstract ones
thomask
parents:
diff changeset
16 }
0e1bf1565db1 [Issue 440] New: dmd.170 fails to mark final methods as implementations of abstract ones
thomask
parents:
diff changeset
17
0e1bf1565db1 [Issue 440] New: dmd.170 fails to mark final methods as implementations of abstract ones
thomask
parents:
diff changeset
18 class C : I {
0e1bf1565db1 [Issue 440] New: dmd.170 fails to mark final methods as implementations of abstract ones
thomask
parents:
diff changeset
19 final int foo() {
0e1bf1565db1 [Issue 440] New: dmd.170 fails to mark final methods as implementations of abstract ones
thomask
parents:
diff changeset
20 return ++status;
0e1bf1565db1 [Issue 440] New: dmd.170 fails to mark final methods as implementations of abstract ones
thomask
parents:
diff changeset
21 }
0e1bf1565db1 [Issue 440] New: dmd.170 fails to mark final methods as implementations of abstract ones
thomask
parents:
diff changeset
22 }
0e1bf1565db1 [Issue 440] New: dmd.170 fails to mark final methods as implementations of abstract ones
thomask
parents:
diff changeset
23
0e1bf1565db1 [Issue 440] New: dmd.170 fails to mark final methods as implementations of abstract ones
thomask
parents:
diff changeset
24 int main() {
0e1bf1565db1 [Issue 440] New: dmd.170 fails to mark final methods as implementations of abstract ones
thomask
parents:
diff changeset
25 C c = new C();
0e1bf1565db1 [Issue 440] New: dmd.170 fails to mark final methods as implementations of abstract ones
thomask
parents:
diff changeset
26 if(c.foo() != 1){
0e1bf1565db1 [Issue 440] New: dmd.170 fails to mark final methods as implementations of abstract ones
thomask
parents:
diff changeset
27 assert(0);
0e1bf1565db1 [Issue 440] New: dmd.170 fails to mark final methods as implementations of abstract ones
thomask
parents:
diff changeset
28 }
0e1bf1565db1 [Issue 440] New: dmd.170 fails to mark final methods as implementations of abstract ones
thomask
parents:
diff changeset
29 I i = c;
0e1bf1565db1 [Issue 440] New: dmd.170 fails to mark final methods as implementations of abstract ones
thomask
parents:
diff changeset
30 if(i.foo() != 2){
0e1bf1565db1 [Issue 440] New: dmd.170 fails to mark final methods as implementations of abstract ones
thomask
parents:
diff changeset
31 assert(0);
0e1bf1565db1 [Issue 440] New: dmd.170 fails to mark final methods as implementations of abstract ones
thomask
parents:
diff changeset
32 }
0e1bf1565db1 [Issue 440] New: dmd.170 fails to mark final methods as implementations of abstract ones
thomask
parents:
diff changeset
33
0e1bf1565db1 [Issue 440] New: dmd.170 fails to mark final methods as implementations of abstract ones
thomask
parents:
diff changeset
34 return 0;
0e1bf1565db1 [Issue 440] New: dmd.170 fails to mark final methods as implementations of abstract ones
thomask
parents:
diff changeset
35 }