FIR deserializer: use class type parameters in constructor directly

This allows calls like Pair(...) to be resolved correctly
This commit is contained in:
Mikhail Glukhikh
2019-09-05 15:16:29 +03:00
parent 6a7ebe8928
commit 98f72e58bd
10 changed files with 12 additions and 17 deletions
@@ -28,7 +28,7 @@ public final class InnerGeneric<A, B> : R|kotlin/Any| {
public constructor<A, B>(): R|test/InnerGeneric<A, B>|
public final inner class Inner<in C, D : R|A|> : R|kotlin/Any| {
public constructor<C, D : R|A|>(): R|test/InnerGeneric.Inner<C, D>|
public constructor<in C, D : R|A|>(): R|test/InnerGeneric.Inner<C, D>|
}
@@ -1,4 +1,4 @@
public final class Wine<in T> : R|kotlin/Any| {
public constructor<T>(): R|test/Wine<T>|
public constructor<in T>(): R|test/Wine<T>|
}
@@ -1,4 +1,4 @@
public final class Juice<out T> : R|kotlin/Any| {
public constructor<T>(): R|test/Juice<T>|
public constructor<out T>(): R|test/Juice<T>|
}
@@ -1,4 +1,4 @@
public final class ClassParamReferencesParam<A, in B : R|A|> : R|kotlin/Any| {
public constructor<A, B : R|A|>(): R|test/ClassParamReferencesParam<A, B>|
public constructor<A, in B : R|A|>(): R|test/ClassParamReferencesParam<A, B>|
}
@@ -1,4 +1,4 @@
public final class ClassTwoParams<out P, Q> : R|kotlin/Any| {
public constructor<P, Q>(): R|test/ClassTwoParams<P, Q>|
public constructor<out P, Q>(): R|test/ClassTwoParams<P, Q>|
}
@@ -1,6 +1,6 @@
public final class ClassParamUsedInFun<in T> : R|kotlin/Any| {
public final fun f(t: R|T|): R|kotlin/Int|
public constructor<T>(): R|test/ClassParamUsedInFun<T>|
public constructor<in T>(): R|test/ClassParamUsedInFun<T>|
}
@@ -15,6 +15,6 @@ public final class A<in I> : R|kotlin/Any| {
private/*private to this*/ get(): R|I|
private/*private to this*/ set(value: R|I|): kotlin/Unit
public constructor<I>(): R|test/A<I>|
public constructor<in I>(): R|test/A<I>|
}