[SamWithReceiver] Fix test configuration and testdata
This commit is contained in:
committed by
Space Team
parent
ebc879ed1e
commit
2610ad94e0
@@ -0,0 +1,20 @@
|
||||
// FILE: Sam.java
|
||||
@SamWithReceiver
|
||||
public interface Sam {
|
||||
void run(String a);
|
||||
}
|
||||
|
||||
// FILE: Exec.java
|
||||
public class Exec {
|
||||
void exec(Sam sam) {}
|
||||
}
|
||||
|
||||
// FILE: test.kt
|
||||
annotation class SamWithReceiver
|
||||
|
||||
fun test() {
|
||||
val e = Exec()
|
||||
|
||||
e.exec <!ARGUMENT_TYPE_MISMATCH!>{ <!CANNOT_INFER_PARAMETER_TYPE!>a<!> -> System.out.<!OVERLOAD_RESOLUTION_AMBIGUITY!>println<!>(a) }<!>
|
||||
e.exec { System.out.println(this) }
|
||||
}
|
||||
Reference in New Issue
Block a user