Files
kotlin-fork/compiler/testData/diagnostics/tests/extensions/contextReceivers/overloading.fir.kt
T

18 lines
263 B
Kotlin
Vendored

// !LANGUAGE: +ContextReceivers
<!CONFLICTING_OVERLOADS!>context(Int, String)
fun foo(): Int<!> {
return this@Int + 42
}
<!CONFLICTING_OVERLOADS!>context(Int)
fun foo(): Int<!> {
return this@Int + 42
}
fun test() {
with(42) {
foo()
}
}