Files
kotlin-fork/compiler/testData/diagnostics/tests/overload/kt2493.kt
T
2021-05-25 13:28:29 +03:00

21 lines
227 B
Kotlin
Vendored

// FIR_IDENTICAL
interface A
interface B
fun <R: A> R.f() {
}
fun <R: B> R.f() {
}
class AImpl: A
class BImpl: B
class C: A, B
fun main() {
AImpl().f()
BImpl().f()
C().<!OVERLOAD_RESOLUTION_AMBIGUITY!>f<!>()
}