mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 15:53:46 +00:00
19 lines
388 B
Kotlin
Vendored
19 lines
388 B
Kotlin
Vendored
// !WITH_NEW_INFERENCE
|
|
// !DIAGNOSTICS: -UNUSED_PARAMETER,-UNUSED_VARIABLE
|
|
|
|
// FILE: Sam.java
|
|
public interface Sam {
|
|
void run(String a);
|
|
}
|
|
|
|
// FILE: test.kt
|
|
fun test() {
|
|
Sam { a ->
|
|
System.out.println(a)
|
|
}
|
|
|
|
Sam {
|
|
val a = <!NO_THIS!>this<!>
|
|
System.out.<!NI;OVERLOAD_RESOLUTION_AMBIGUITY!>println<!>(<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>a<!>)
|
|
}
|
|
} |