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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1201
33827ceb71dd [Issue 419] New: Anonymous classes are not working.
thomask
parents:
diff changeset
1 // $HeadURL$
33827ceb71dd [Issue 419] New: Anonymous classes are not working.
thomask
parents:
diff changeset
2 // $Date$
33827ceb71dd [Issue 419] New: Anonymous classes are not working.
thomask
parents:
diff changeset
3 // $Author$
33827ceb71dd [Issue 419] New: Anonymous classes are not working.
thomask
parents:
diff changeset
4
33827ceb71dd [Issue 419] New: Anonymous classes are not working.
thomask
parents:
diff changeset
5 // @author@ Frank Benoit <benoit@tionex.de>
33827ceb71dd [Issue 419] New: Anonymous classes are not working.
thomask
parents:
diff changeset
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
33827ceb71dd [Issue 419] New: Anonymous classes are not working.
thomask
parents:
diff changeset
8 // @desc@ [Issue 419] New: Anonymous classes are not working.
33827ceb71dd [Issue 419] New: Anonymous classes are not working.
thomask
parents:
diff changeset
9
33827ceb71dd [Issue 419] New: Anonymous classes are not working.
thomask
parents:
diff changeset
10 module dstress.run.t.this_13_C;
33827ceb71dd [Issue 419] New: Anonymous classes are not working.
thomask
parents:
diff changeset
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
33827ceb71dd [Issue 419] New: Anonymous classes are not working.
thomask
parents:
diff changeset
16 class C{
33827ceb71dd [Issue 419] New: Anonymous classes are not working.
thomask
parents:
diff changeset
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
33827ceb71dd [Issue 419] New: Anonymous classes are not working.
thomask
parents:
diff changeset
19 void get( char[] s ){
33827ceb71dd [Issue 419] New: Anonymous classes are not working.
thomask
parents:
diff changeset
20 func();
33827ceb71dd [Issue 419] New: Anonymous classes are not working.
thomask
parents:
diff changeset
21 }
33827ceb71dd [Issue 419] New: Anonymous classes are not working.
thomask
parents:
diff changeset
22 };
33827ceb71dd [Issue 419] New: Anonymous classes are not working.
thomask
parents:
diff changeset
23 }
33827ceb71dd [Issue 419] New: Anonymous classes are not working.
thomask
parents:
diff changeset
24 void func( ){ }
33827ceb71dd [Issue 419] New: Anonymous classes are not working.
thomask
parents:
diff changeset
25 }
33827ceb71dd [Issue 419] New: Anonymous classes are not working.
thomask
parents:
diff changeset
26
33827ceb71dd [Issue 419] New: Anonymous classes are not working.
thomask
parents:
diff changeset
27 int main(){
33827ceb71dd [Issue 419] New: Anonymous classes are not working.
thomask
parents:
diff changeset
28 C c = new C();
33827ceb71dd [Issue 419] New: Anonymous classes are not working.
thomask
parents:
diff changeset
29 c.init();
33827ceb71dd [Issue 419] New: Anonymous classes are not working.
thomask
parents:
diff changeset
30
33827ceb71dd [Issue 419] New: Anonymous classes are not working.
thomask
parents:
diff changeset
31 return 0;
33827ceb71dd [Issue 419] New: Anonymous classes are not working.
thomask
parents:
diff changeset
32 }
33827ceb71dd [Issue 419] New: Anonymous classes are not working.
thomask
parents:
diff changeset
33