Files
kotlin-fork/compiler/testData/diagnostics/tests/j+k/ambiguousSamAdapters.kt
T
Alexey Sedunov 9fee8600cb Pseudocode: Do not generate implicit return instruction inside of
Unit-typed lambdas
 #KT-5549 Fixed
2014-08-05 18:14:40 +04:00

17 lines
307 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.<!OVERLOAD_RESOLUTION_AMBIGUITY!>foo<!> { "Hello!" }
A.foo(Runnable { <!UNUSED_EXPRESSION!>"Hello!"<!> })
}