Files
kotlin-fork/compiler/testData/diagnostics/tests/overload/kt2493.kt
T
2015-05-12 19:43:17 +02:00

19 lines
222 B
Kotlin
Vendored

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(args: Array<String>) {
AImpl().f()
BImpl().f()
C().<!CANNOT_COMPLETE_RESOLVE!>f<!>()
}