Files
kotlin-fork/compiler/testData/codegen/boxInline/inlineClasses/anonymousObject.kt
T
2021-02-25 14:44:16 +01:00

17 lines
227 B
Kotlin
Vendored

// NO_CHECK_LAMBDA_INLINING
// FILE: 1.kt
package test
inline class IC(val value: Any)
inline fun <reified T> f(a: IC): () -> T = {
a.value as T
}
// FILE: 2.kt
import test.*
fun box(): String = f<String>(IC("OK"))()