Check componentN functions for overload conflicts

This commit is contained in:
Alexander Udalov
2012-09-03 21:09:28 +04:00
parent fbeaaf5fbb
commit 67211fde40
3 changed files with 12 additions and 1 deletions
@@ -210,7 +210,9 @@ public class OverloadResolver {
if (!overloadable.isSuccess()) {
JetDeclaration jetDeclaration = (JetDeclaration) BindingContextUtils
.descriptorToDeclaration(trace.getBindingContext(), member);
redeclarations.add(Pair.create(jetDeclaration, member));
if (jetDeclaration != null) {
redeclarations.add(Pair.create(jetDeclaration, member));
}
}
}
}