Files
kotlin/compiler/testData/codegen/boxWithJava/properties/substituteJavaSuperField.kt
2016-03-02 15:47:38 +03:00

16 lines
243 B
Kotlin
Vendored

// FILE: Test.java
public abstract class Test<F> {
protected final F value = null;
}
// FILE: test.kt
class A : Test<String>() {
fun foo(): String? = value
}
fun box(): String {
return if (A().foo() == null) "OK" else "Fail"
}