Skip to content

Commit

Permalink
Fix issue 2289 Constructor resolution error for overloaded variadic c…
Browse files Browse the repository at this point in the history
…onstructor
  • Loading branch information
jlerbsc committed Nov 4, 2020
1 parent e2fc5ea commit b0f7ec7
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,9 @@ private static boolean isMoreSpecific(ResolvedConstructorDeclaration constructor
return false;
}
// if it matches a variadic and a not variadic I pick the not variadic
if (!tdA.isArray() && tdB.isArray()) {
return true;
}
// FIXME
if (i == (constructorA.getNumberOfParams() - 1) && tdA.arrayLevel() > tdB.arrayLevel()) {
return true;
Expand Down

0 comments on commit b0f7ec7

Please sign in to comment.