IR: capture more type parameters for local functions.

Types of value parameters and captured variables, even unused, need to
be considered.
This commit is contained in:
Georgy Bronnikov
2020-01-15 16:44:30 +03:00
parent 437a26684d
commit 174b3db723
6 changed files with 45 additions and 6 deletions
@@ -0,0 +1,7 @@
package test;
class TypeParamInInner2 {
void check() {
TypeParamInInner2Kt.f("OK");
}
}
@@ -0,0 +1,6 @@
package test
fun <V> f(x: V): Int {
fun g(y: V) = 2
return g(x)
}
@@ -0,0 +1,8 @@
package test
public fun </*0*/ V> f(/*0*/ V): kotlin.Int
public/*package*/ open class TypeParamInInner2 {
public/*package*/ constructor TypeParamInInner2()
public/*package*/ open fun check(): kotlin.Unit
}