Files
kotlin-fork/compiler/testData/ir/irText/classes/delegatedImplementationOfJavaInterface.kt
T

19 lines
463 B
Kotlin
Vendored

// TARGET_BACKEND: JVM
// FILE: delegatedImplementationOfJavaInterface.kt
class Test(private val j: J) : J by j
// FILE: J.java
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
public interface J {
void takeNotNull(@NotNull String x);
void takeNullable(@Nullable String x);
void takeFlexible(String x);
@NotNull String returnNotNull();
@Nullable String returnNullable();
String returnsFlexible();
}