Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

Navigation

Changeset 587

Show
Ignore:
Timestamp:
07/25/10 02:09:37 (15 years ago)
Author:
walter
Message:

bugzilla 3706 delegates of interfaces with multiple inheritance fail

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/dmd-1.x/src/expression.c

    r585 r587
    60536053 if (func->needThis())
    60546054 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(追記) } (追記ここまで)
    60556060 }
    60566061 return this;
  • trunk/src/expression.c

    r585 r587
    63886388 if (func->needThis())
    63896389 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(追記) } (追記ここまで)
    63906395 }
    63916396 return this;

AltStyle によって変換されたページ (->オリジナル) /