Files
kotlin-fork/plugins/sam-with-receiver/testData/diagnostics/singleParameterWithoutAnnotation.kt
T
2022-06-27 08:11:33 +00:00

17 lines
278 B
Kotlin
Vendored

// FILE: SamConstructor.kt
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.<!OVERLOAD_RESOLUTION_AMBIGUITY!>println<!>(a)
}
}