blob: c0d8edfeab27748460c36e920fda846630858ebd [file] [log] [blame]
// FILE: Sam.java
@SamWithReceiver
public interface Sam {
String run(String argument);
}
// FILE: test.kt
annotation class SamWithReceiver
fun takeSam(argument: String, sam: Sam): String {
return sam.run(argument)
}
fun box(): String {
return takeSam("OK") { this }
}