07cb3a5ff8
All type parameters used in them are not from the inline function anyway.
17 lines
224 B
Kotlin
Vendored
17 lines
224 B
Kotlin
Vendored
// FILE: 1.kt
|
|
package test
|
|
|
|
inline fun <reified T> f(x: () -> String) = x()
|
|
|
|
inline fun <reified T> g() = f<Unit> {
|
|
val x = { T::class.simpleName }
|
|
x()!!
|
|
}
|
|
|
|
// FILE: 2.kt
|
|
import test.*
|
|
|
|
class OK
|
|
|
|
fun box() = g<OK>()
|