Files
kotlin-fork/compiler/testData/codegen/box/extensionFunctions/contextReceivers/contextAndExtensionSameName.kt
T
2021-12-02 20:24:16 +03:00

13 lines
166 B
Kotlin
Vendored

// !LANGUAGE: +ContextReceivers
// TARGET_BACKEND: JVM_IR
class A {
val ok = "OK"
context(A)
fun A.f() = ok
}
fun box(): String = with(A()) {
f()
}