[SamWithReceiver] Fix test configuration and testdata

This commit is contained in:
Dmitriy Novozhilov
2022-11-24 11:09:17 +02:00
committed by Space Team
parent ebc879ed1e
commit 2610ad94e0
25 changed files with 273 additions and 22 deletions
@@ -0,0 +1,17 @@
// 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<!>) }
}