Mercurial > projects > dang
comparison tests/sema/public_1.d @ 136:2be29b296081
Lots of changes:
- Parsing classes and interfaces
- Fixed some seg faults in sema
- Supporting "private" to some extend
- And a lot of other small fixes
author | johnsen@johnsen-laptop |
---|---|
date | Fri, 11 Jul 2008 21:47:57 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
135:9869194de9b7 | 136:2be29b296081 |
---|---|
1 //fail | |
2 | |
3 public struct A | |
4 { | |
5 //static: | |
6 public void foo() | |
7 { | |
8 bar(); | |
9 } | |
10 | |
11 private void bar() | |
12 { | |
13 } | |
14 final int i; | |
15 } | |
16 | |
17 private void bar() | |
18 { | |
19 } | |
20 | |
21 void main() | |
22 { | |
23 A a; | |
24 a.foo(); | |
25 a.bar(); | |
26 bar(); | |
27 } |