Mercurial > projects > dstress
annotate run/s/scope_22_A.d @ 1615:8d5c55d163fd
Fix some outdated tests that used auto to mean scope.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sun, 12 Jul 2009 16:44:52 +0200 |
parents | run/a/auto_16_A.d@36bedfa079e6 |
children |
rev | line source |
---|---|
871 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ yama <yama_member@pathlink.com> | |
6 // @date@ 2006-02-26 | |
1489 | 7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=6373 |
871 | 8 |
1615
8d5c55d163fd
Fix some outdated tests that used auto to mean scope.
Christian Kamm <kamm incasoftware de>
parents:
1560
diff
changeset
|
9 module dstress.run.s.scope_22_A; |
871 | 10 |
11 class C{ | |
1615
8d5c55d163fd
Fix some outdated tests that used auto to mean scope.
Christian Kamm <kamm incasoftware de>
parents:
1560
diff
changeset
|
12 char[] toString(){ |
871 | 13 return "hallo bug"; |
14 } | |
15 } | |
16 | |
17 int main(){ | |
1615
8d5c55d163fd
Fix some outdated tests that used auto to mean scope.
Christian Kamm <kamm incasoftware de>
parents:
1560
diff
changeset
|
18 scope C c; |
871 | 19 version(all){ |
20 c = new C(); | |
21 } | |
22 | |
23 if(c.toString() != "hallo bug"){ | |
24 assert(0); | |
25 } | |
26 | |
27 return 0; | |
28 } | |
29 | |
30 | |
31 |