KT-15574 Can't instantiate Array through Type Alias
Array instatiation code should handle type alias constructors properly. So far, we don't have constructors with type parameters different from the type parameters of the resulting type, so we can safely take type arguments of the underlying type.
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
@kotlin.Metadata
|
||||
public final class GenericTypeAliasConstructor2Kt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
public final class Pair {
|
||||
private final field x1: java.lang.Object
|
||||
private final field x2: java.lang.Object
|
||||
public method <init>(p0: java.lang.Object, p1: java.lang.Object): void
|
||||
public final method getX1(): java.lang.Object
|
||||
public final method getX2(): java.lang.Object
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
@kotlin.Metadata
|
||||
public final class TypeAliasConstructorForArrayKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
Reference in New Issue
Block a user