[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,21 @@
// FILE: Sam.java
@SamWithReceiver
public interface Sam {
String run(String a, String b);
}
// FILE: test.kt
annotation class SamWithReceiver
fun test() {
Sam <!ARGUMENT_TYPE_MISMATCH!>{ a, <!CANNOT_INFER_PARAMETER_TYPE!>b<!> ->
System.out.println(a)
""
}<!>
Sam { b ->
val a: String = this
System.out.println(a)
""
}
}