Files
kotlin-fork/plugins/sam-with-receiver/testData/diagnostics/samConversionSimpleWithoutAnnotation.fir.kt
2022-12-01 07:29:36 +00:00

18 lines
320 B
Kotlin
Vendored

// FILE: Sam.java
public interface Sam {
void run(String a);
}
// FILE: Exec.java
public class Exec {
void exec(Sam sam) {}
}
// FILE: test.kt
fun test() {
val e = Exec()
e.exec { a -> System.out.println(a) }
e.exec { System.out.<!OVERLOAD_RESOLUTION_AMBIGUITY!>println<!>(<!NO_THIS!>this<!>) }
}