IR: close over the set of captured type parameters

This commit is contained in:
pyos
2020-01-16 11:18:04 +01:00
committed by Georgy Bronnikov
parent e9cea3358d
commit 6e6f4d0503
8 changed files with 49 additions and 15 deletions
@@ -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")