mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
Fix incorrect 'original' in property accessors
#KT-3930 Fixed
This commit is contained in:
3
compiler/testData/codegen/boxWithJava/properties/substituteJavaSuperField/Test.java
vendored
Normal file
3
compiler/testData/codegen/boxWithJava/properties/substituteJavaSuperField/Test.java
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
abstract class Test<F> {
|
||||
protected final F value = null;
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
class A : Test<String>() {
|
||||
fun foo(): String? = value
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return if (A().foo() == null) "OK" else "Fail"
|
||||
}
|
||||
Reference in New Issue
Block a user