Files
kotlin-fork/compiler/testData/codegen/box/funInterface/noOptimizedCallableReferences.kt
T
2021-10-02 06:14:35 +00:00

14 lines
219 B
Kotlin
Vendored

// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: SAM_CONVERSIONS
// NO_OPTIMIZED_CALLABLE_REFERENCES
fun interface P {
fun get(): String
}
class G(val p: P)
fun f(): String = "OK"
fun box(): String = G(::f).p.get()