Mercurial > projects > dstress
annotate nocompile/invariant_17.d @ 202:4cd33115f015
1) fixed @author@ typos
2) added reporter.txt
author | thomask |
---|---|
date | Wed, 15 Dec 2004 17:37:40 +0000 |
parents | a33ad7189d21 |
children | f87ba6507260 |
rev | line source |
---|---|
140 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
202 | 5 // @author@ Thomas Kuehne <thomas-dloop@kuehne.thisisspam.cn> |
70
5f98d4a33d49
1) review of all test cases with unexpected results (except encoding and html/xml)
thomask
parents:
66
diff
changeset
|
6 // @date@ 2004-10-22 |
140 | 7 // @uri@ news:clbr09$uc6$1@digitaldaemon.com |
8 // @url@ nntp://digitalmars.com/digitalmars.D.bugs/2140 | |
70
5f98d4a33d49
1) review of all test cases with unexpected results (except encoding and html/xml)
thomask
parents:
66
diff
changeset
|
9 |
66 | 10 // invariant may not call non-static public class member functions (stack overflow) |
11 | |
12 module dstress.nocompile.invariant_17; | |
13 | |
14 class MyClass{ | |
15 this(){ | |
16 } | |
17 | |
18 int test(){ | |
19 return 0; | |
20 } | |
21 | |
22 invariant{ | |
23 assert(test()!=0); | |
24 } | |
25 } | |
26 | |
27 int main(){ | |
28 MyClass c = new MyClass(); | |
29 return 0; | |
30 } |