Mercurial > projects > dstress
annotate run/class_06.d @ 111:24da167d3f07
svn maintenance
1) mime types
2) end of line property
3) updated links in the result page
author | thomask |
---|---|
date | Sun, 07 Nov 2004 08:37:27 +0000 |
parents | 659bb018c489 |
children | a33ad7189d21 |
rev | line source |
---|---|
111 | 1 // @author@ heretic <heretic_member@pathlink.com> |
2 // @date@ 2004-07-09 | |
3 // @uri@ news://ccl6ao$vd3$1@digitaldaemon.com | |
4 // @url@ nttp://digitalmars.com/digitalmars.D.bugs:752 | |
5 | |
6 module dstress.run.class_06; | |
7 | |
8 void func1(){ | |
9 class foo { | |
10 public int a; | |
11 } | |
12 } | |
13 | |
14 void func2(){ | |
15 class foo { | |
16 public int b; | |
17 } | |
18 | |
19 foo bar = new foo(); | |
20 bar.b = 255; // error no property 'b' for type 'foo' | |
21 } | |
22 | |
23 int main(){ | |
24 func2(); | |
25 return 0; | |
26 } | |
27 |