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:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user