[FE 1.0] Eliminate resolution ambiguity on inherited SAM-interfaces
^KT-17765 Fixed
This commit is contained in:
committed by
teamcityserver
parent
a5c6d370dd
commit
a6fd14d4e6
@@ -0,0 +1,12 @@
|
||||
// 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.<!OVERLOAD_RESOLUTION_AMBIGUITY!>foo<!> { }
|
||||
}
|
||||
Reference in New Issue
Block a user