Changeset 587
- Timestamp:
- 07/25/10 02:09:37 (15 years ago)
- Author:
- walter
- Message:
bugzilla 3706 delegates of interfaces with multiple inheritance fail
- Files:
-
- branches/dmd-1.x/src/expression.c (modified) (1 diff)
- trunk/src/expression.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/dmd-1.x/src/expression.c
r585 r587 6053 6053 if (func->needThis()) 6054 6054 e1 = getRightThis(loc, sc, ad, e1, func); 6055 (追記) if (ad && ad->type != e1->type) (追記ここまで) 6056 (追記) { // A downcast is required for interfaces, see Bugzilla 3706 (追記ここまで) 6057 (追記) e1 = new CastExp(loc, e1, ad->type); (追記ここまで) 6058 (追記) e1 = e1->semantic(sc); (追記ここまで) 6059 (追記) } (追記ここまで) 6055 6060 } 6056 6061 return this; trunk/src/expression.c
r585 r587 6388 6388 if (func->needThis()) 6389 6389 e1 = getRightThis(loc, sc, ad, e1, func); 6390 (追記) if (ad && ad->type != e1->type) (追記ここまで) 6391 (追記) { // A downcast is required for interfaces, see Bugzilla 3706 (追記ここまで) 6392 (追記) e1 = new CastExp(loc, e1, ad->type); (追記ここまで) 6393 (追記) e1 = e1->semantic(sc); (追記ここまで) 6394 (追記) } (追記ここまで) 6390 6395 } 6391 6396 return this;