49c836e706
Script tests still use old infrastructure, because there is no support for them in new framework
23 lines
519 B
Kotlin
Vendored
23 lines
519 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
|
|
// FILE: Sam.java
|
|
@SamWithReceiver
|
|
public interface Sam {
|
|
void run(String a);
|
|
}
|
|
|
|
// FILE: test.kt
|
|
annotation class SamWithReceiver
|
|
|
|
fun test() {
|
|
Sam <!TYPE_MISMATCH!>{ <!CANNOT_INFER_PARAMETER_TYPE, EXPECTED_PARAMETERS_NUMBER_MISMATCH!>a<!> ->
|
|
System.out.<!OVERLOAD_RESOLUTION_AMBIGUITY!>println<!>(<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>a<!>)
|
|
}<!>
|
|
|
|
Sam {
|
|
val a: String = this
|
|
val a2: String = <!UNRESOLVED_REFERENCE!>it<!>
|
|
System.out.println(a)
|
|
}
|
|
}
|