Take into account captured types with variables during fixation

#KT-41202 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2020-08-26 09:44:57 +03:00
parent 5dbb6fdf50
commit cba13c3c35
11 changed files with 75 additions and 11 deletions
@@ -0,0 +1,14 @@
class Inv<T>
fun <T : V, U : V, V> foo(x: T, y: Inv<in U>) {}
fun <E> materializeInvInv(): Inv<in Inv<E>?> = Inv()
fun test(inv: Inv<Int>) {
foo(inv, materializeInvInv())
}
fun box(): String {
test(Inv<Int>())
return "OK"
}