IR: close over the set of captured type parameters
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
fun <T, V : T> f(x: V): V {
|
||||
fun g(y: V) = y
|
||||
return g(x)
|
||||
}
|
||||
|
||||
fun box() = f<Any, String>("OK")
|
||||
Reference in New Issue
Block a user