Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/arguments/overloadByReceiver.kt
T
2020-03-19 09:51:01 +03:00

17 lines
210 B
Kotlin
Vendored

interface A
interface B : A
interface C
interface D : B, C
fun B.foo(): Int = 1
fun <T> T.foo(): String where T : A, T : C = ""
fun takeInt(x: Int) {}
fun test(d: D) {
val x = d.foo()
takeInt(x)
}