Files
kotlin-fork/compiler/testData/diagnostics/tests/extensions/contextReceivers/overloadPriority.fir.kt
T
2021-12-02 20:24:16 +03:00

14 lines
231 B
Kotlin
Vendored

// !LANGUAGE: +ContextReceivers
class Context
<!CONFLICTING_OVERLOADS!>context(Context)
fun f(): String<!> = TODO()
<!CONFLICTING_OVERLOADS!>fun f(): Any<!> = TODO()
fun test() {
with(Context()) {
f().length
}
}