mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 15:53:46 +00:00
19 lines
336 B
Kotlin
Vendored
19 lines
336 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_PARAMETER,-UNUSED_VARIABLE
|
|
|
|
// 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.println(<!NO_THIS!>this<!>) }
|
|
} |