properly read vararg signature from java code

KT-1694 Java vararg override, Why is it intuitive interface?

#KT-1694 Fixed
This commit is contained in:
Stepan Koltsov
2012-05-12 22:21:09 +04:00
parent 78914d0157
commit f061fce9a8
2 changed files with 13 additions and 0 deletions
@@ -1087,6 +1087,7 @@ public class JavaDescriptorResolver {
JetType varargElementType;
if (psiType instanceof PsiEllipsisType) {
varargElementType = JetStandardLibrary.getInstance().getArrayElementType(TypeUtils.makeNotNullable(outType));
outType = TypeUtils.makeNotNullable(outType);
}
else {
varargElementType = null;