annotate nocompile/with_07.d @ 1619:bebc7472a832

Fix #7.
author Christian Kamm <kamm incasoftware de>
date Sat, 07 Nov 2009 18:55:30 +0100
parents 1f6cf5ccfbc9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
338
1f6cf5ccfbc9 1) updated rules to dmd-0.119
thomask
parents: 16
diff changeset
1 // $HeadURL$
1f6cf5ccfbc9 1) updated rules to dmd-0.119
thomask
parents: 16
diff changeset
2 // $Date$
1f6cf5ccfbc9 1) updated rules to dmd-0.119
thomask
parents: 16
diff changeset
3 // $Author$
1f6cf5ccfbc9 1) updated rules to dmd-0.119
thomask
parents: 16
diff changeset
4
1f6cf5ccfbc9 1) updated rules to dmd-0.119
thomask
parents: 16
diff changeset
5 // __DSTRESS_ELINE__ 20
1f6cf5ccfbc9 1) updated rules to dmd-0.119
thomask
parents: 16
diff changeset
6
1f6cf5ccfbc9 1) updated rules to dmd-0.119
thomask
parents: 16
diff changeset
7 module dstress.nocompile.with_07;
1f6cf5ccfbc9 1) updated rules to dmd-0.119
thomask
parents: 16
diff changeset
8
16
0fcca61f008f added "with" tests
unknown
parents:
diff changeset
9 class MyClass{
0fcca61f008f added "with" tests
unknown
parents:
diff changeset
10 int test(){
0fcca61f008f added "with" tests
unknown
parents:
diff changeset
11 return 3;
0fcca61f008f added "with" tests
unknown
parents:
diff changeset
12 }
0fcca61f008f added "with" tests
unknown
parents:
diff changeset
13 }
0fcca61f008f added "with" tests
unknown
parents:
diff changeset
14
0fcca61f008f added "with" tests
unknown
parents:
diff changeset
15 int test(){
0fcca61f008f added "with" tests
unknown
parents:
diff changeset
16 return 5;
0fcca61f008f added "with" tests
unknown
parents:
diff changeset
17 }
0fcca61f008f added "with" tests
unknown
parents:
diff changeset
18
0fcca61f008f added "with" tests
unknown
parents:
diff changeset
19 int main(){
0fcca61f008f added "with" tests
unknown
parents:
diff changeset
20 with(new MyClass()):
0fcca61f008f added "with" tests
unknown
parents:
diff changeset
21 assert(test()==3);
0fcca61f008f added "with" tests
unknown
parents:
diff changeset
22
0fcca61f008f added "with" tests
unknown
parents:
diff changeset
23 return 0;
0fcca61f008f added "with" tests
unknown
parents:
diff changeset
24 }