Added test for ambiguous SAM adapters within one class.

This commit is contained in:
Evgeny Gerashchenko
2013-06-07 19:51:22 +04:00
parent 4980dacd33
commit cfc99b941a
5 changed files with 48 additions and 0 deletions
@@ -0,0 +1,18 @@
// FILE: A.java
import java.io.Closeable;
public class A {
public static void foo(Runnable r) {
}
public static void foo(Closeable c) {
}
}
// FILE: test.kt
fun main() {
A.<!OVERLOAD_RESOLUTION_AMBIGUITY!>foo { "Hello!" }<!>
A.foo(Runnable { "Hello!" })
}