[Issue 15784] Overload set constructor call should be supported from inside a constructor
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Mar 14 08:34:47 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=15784
Kenji Hara <k.hara.pg at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |pull
--- Comment #2 from Kenji Hara <k.hara.pg at gmail.com> ---
https://github.com/D-Programming-Language/dmd/pull/5524(In reply to Martin
Nowak from comment #1)
> Why isn't this working? The lookup origin should already be Bar.
> Note that you should still only be allowed to match a single member of an
> overload set.
Because the call forms `super(...)` and `this(...)` are specially handled in
CallExp.semantic(), and they didn't consider the case that the construcotor is
OverloadSet.
Fix:
https://github.com/D-Programming-Language/dmd/pull/5524
--
More information about the Digitalmars-d-bugs
mailing list