140
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
111
|
5 // @author@ heretic <heretic_member@pathlink.com>
|
|
6 // @date@ 2004-07-09
|
140
|
7 // @uri@ news:ccl6ao$vd3$1@digitaldaemon.com
|
1487
|
8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=752
|
111
|
9
|
|
10 module dstress.run.class_06;
|
|
11
|
|
12 void func1(){
|
|
13 class foo {
|
|
14 public int a;
|
|
15 }
|
|
16 }
|
|
17
|
|
18 void func2(){
|
|
19 class foo {
|
|
20 public int b;
|
|
21 }
|
|
22
|
|
23 foo bar = new foo();
|
|
24 bar.b = 255; // error no property 'b' for type 'foo'
|
|
25 }
|
|
26
|
|
27 int main(){
|
|
28 func2();
|
|
29 return 0;
|
|
30 }
|
|
31
|