Files
kotlin-fork/compiler/testData/codegen/boxInline/innerClasses/innerInlineFunCapturesOuterFunRef.kt
T
2022-05-05 21:03:38 +00:00

13 lines
204 B
Kotlin
Vendored

// IGNORE_BACKEND: WASM
// FILE: 1.kt
class E(val x: String) {
fun bar() = x
inner class Inner {
inline fun foo() = this@E::bar
}
}
// FILE: 2.kt
fun box() = E("OK").Inner().foo()()