Files
kotlin-fork/compiler/testData/codegen/box/extensionFunctions/contextReceivers/contextAndExtensionSameName.kt
T

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()
}