resolve int vararg from java
This commit is contained in:
+1
-1
@@ -1156,7 +1156,7 @@ public class JavaDescriptorResolver {
|
||||
|
||||
JetType varargElementType;
|
||||
if (psiType instanceof PsiEllipsisType) {
|
||||
varargElementType = JetStandardLibrary.getInstance().getArrayElementType(outType);
|
||||
varargElementType = JetStandardLibrary.getInstance().getArrayElementType(TypeUtils.makeNotNullable(outType));
|
||||
}
|
||||
else {
|
||||
varargElementType = null;
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
package test;
|
||||
|
||||
class VarargInt {
|
||||
void vararg(int... p) {}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
open class VarargInt() : java.lang.Object() {
|
||||
open fun vararg(vararg p0: Int): Unit = #()
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace test
|
||||
|
||||
open class test.VarargInt : java.lang.Object {
|
||||
final /*constructor*/ fun <init>(): test.VarargInt
|
||||
open fun vararg(/*0*/ vararg p0: jet.Int): jet.Tuple0
|
||||
}
|
||||
Reference in New Issue
Block a user