Skip to content

Commit

Permalink
fix issue 17177. AutoImplement fails on function overload sets with "…
Browse files Browse the repository at this point in the history
…cannot infer type from overloaded function symbol".
  • Loading branch information
aermicioi committed Feb 12, 2017
1 parent fd014e8 commit 085902b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions std/typecons.d
Expand Up @@ -4175,8 +4175,7 @@ private static:
{
preamble ~= "alias self = " ~ name ~ ";\n";
if (WITH_BASE_CLASS && !__traits(isAbstractFunction, func))
//preamble ~= "alias super." ~ name ~ " parent;\n"; // [BUG 2540]
preamble ~= "auto parent = &super." ~ name ~ ";\n";
preamble ~= "alias parent = AliasSeq!(__traits(getMember, super, \"" ~ name ~ "\"))[0];";
}

// Function body
Expand Down

0 comments on commit 085902b

Please sign in to comment.