[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
@@ -1,4 +1,4 @@
// FILE: SamConstructor.kt
// FILE: Sam.java
@SamWithReceiver
public interface Sam {
void run(String a);
@@ -15,6 +15,6 @@ 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 <!TYPE_MISMATCH!>{ <!CANNOT_INFER_PARAMETER_TYPE, EXPECTED_PARAMETERS_NUMBER_MISMATCH!>a<!> -> System.out.<!OVERLOAD_RESOLUTION_AMBIGUITY!>println<!>(<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>a<!>) }<!>
e.exec { System.out.println(this) }
}