Files
kotlin-fork/compiler/testData/codegen/box/sam/kt17765.kt
T
2021-11-22 14:18:30 +03:00

20 lines
419 B
Kotlin
Vendored

// IGNORE_BACKEND: JS, NATIVE, WASM, JS_IR, JS_IR_ES6
// !LANGUAGE: +EliminateAmbiguitiesOnInheritedSamInterfaces
// FILE: Test.java
public class Test {
interface MyRunnable extends Runnable {}
public static void foo(MyRunnable r) {}
public static void foo(Runnable r) {}
}
// FILE: 1.kt
fun main(args: Array<String>) {
Test.foo { }
}
fun box(): String {
main(arrayOf("", ""))
return "OK"
}