Mercurial > projects > dstress
annotate run/t/this_13_C.d @ 1598:23834ba9736a
Fixed typos in test cases. See D bug 2174.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 09 Sep 2008 17:03:25 +0200 |
parents | daef239f37cf |
children |
rev | line source |
---|---|
1201 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Frank Benoit <benoit@tionex.de> | |
6 // @date@ 2006-10-09 | |
1320
daef239f37cf
sed'ed replacement of new:...http.d.puremagic.com/issues/ with http://d.puremagic.com/issues/show_bug.cgi?...
thomask
parents:
1201
diff
changeset
|
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=419 |
1201 | 8 // @desc@ [Issue 419] New: Anonymous classes are not working. |
9 | |
10 module dstress.run.t.this_13_C; | |
11 | |
1598
23834ba9736a
Fixed typos in test cases. See D bug 2174.
Christian Kamm <kamm incasoftware de>
parents:
1320
diff
changeset
|
12 interface I { |
23834ba9736a
Fixed typos in test cases. See D bug 2174.
Christian Kamm <kamm incasoftware de>
parents:
1320
diff
changeset
|
13 void get( char[] s ); |
23834ba9736a
Fixed typos in test cases. See D bug 2174.
Christian Kamm <kamm incasoftware de>
parents:
1320
diff
changeset
|
14 } |
23834ba9736a
Fixed typos in test cases. See D bug 2174.
Christian Kamm <kamm incasoftware de>
parents:
1320
diff
changeset
|
15 |
1201 | 16 class C{ |
17 void init(){ | |
1598
23834ba9736a
Fixed typos in test cases. See D bug 2174.
Christian Kamm <kamm incasoftware de>
parents:
1320
diff
changeset
|
18 I i = new class() I { |
1201 | 19 void get( char[] s ){ |
20 func(); | |
21 } | |
22 }; | |
23 } | |
24 void func( ){ } | |
25 } | |
26 | |
27 int main(){ | |
28 C c = new C(); | |
29 c.init(); | |
30 | |
31 return 0; | |
32 } | |
33 |