comparison dmd/WithScopeSymbol.d @ 129:010eb8f0e18d

further work on dmd test suite
author korDen
date Sun, 05 Sep 2010 15:32:22 +0400
parents e28b18c23469
children e3afd1303184
comparison
equal deleted inserted replaced
128:e6e542f37b94 129:010eb8f0e18d
11 { 11 {
12 WithStatement withstate; 12 WithStatement withstate;
13 13
14 this(WithStatement withstate) 14 this(WithStatement withstate)
15 { 15 {
16 assert(false); 16 this.withstate = withstate;
17 } 17 }
18 18
19 override Dsymbol search(Loc loc, Identifier ident, int flags) 19 override Dsymbol search(Loc loc, Identifier ident, int flags)
20 { 20 {
21 assert(false); 21 // Acts as proxy to the with class declaration
22 return withstate.exp.type.toDsymbol(null).search(loc, ident, 0);
22 } 23 }
23 24
24 override WithScopeSymbol isWithScopeSymbol() { return this; } 25 override WithScopeSymbol isWithScopeSymbol() { return this; }
25 } 26 }