comparison 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
comparison
equal deleted inserted replaced
1614:709f6451b315 1615:8d5c55d163fd
1 // $HeadURL$
2 // $Date$
3 // $Author$
4
5 // @author@ yama <yama_member@pathlink.com>
6 // @date@ 2006-02-26
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=6373
8
9 module dstress.run.s.scope_22_A;
10
11 class C{
12 char[] toString(){
13 return "hallo bug";
14 }
15 }
16
17 int main(){
18 scope C c;
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