Take into account captured types with variables during fixation
#KT-41202 Fixed
This commit is contained in:
+14
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user