Files
kotlin-fork/compiler/testData/diagnostics/tests/extensions/contextReceivers/contextReceiverAmbiguity.kt
T
2023-11-02 08:58:28 +00:00

15 lines
253 B
Kotlin
Vendored

// FIR_IDENTICAL
// !LANGUAGE: +ContextReceivers
// RENDER_DIAGNOSTICS_FULL_TEXT
context(String)
fun foo(x: Comparable<*>) {}
context(String)
fun foo(x: Number) {}
fun test() {
with("") {
<!OVERLOAD_RESOLUTION_AMBIGUITY!>foo<!>(1)
}
}