49c836e706
Script tests still use old infrastructure, because there is no support for them in new framework
22 lines
311 B
Kotlin
Vendored
22 lines
311 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
|
|
// FILE: Sam.java
|
|
@SamWithReceiver
|
|
public interface Sam {
|
|
void run();
|
|
}
|
|
|
|
// FILE: test.kt
|
|
annotation class SamWithReceiver
|
|
|
|
fun test() {
|
|
Sam {
|
|
System.out.println("Hello, world!")
|
|
}
|
|
|
|
Sam {
|
|
val a: String = <!NO_THIS!>this<!>
|
|
System.out.println(a)
|
|
}
|
|
}
|