Files
kotlin-fork/compiler/testData/diagnostics/tests/j+k/ambiguousSamAdapters.fir.kt
T

17 lines
263 B
Kotlin
Vendored

// 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.<!AMBIGUITY!>foo<!> { "Hello!" }
A.foo(Runnable { "Hello!" })
}