a6fd14d4e6
^KT-17765 Fixed
20 lines
419 B
Kotlin
Vendored
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"
|
|
} |