mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
NoSuchFieldError in Evaluate Expression on a property of a derived class (KT-12206)
#KT-12206 Fixed
This commit is contained in:
20
compiler/testData/codegen/bytecodeText/accessorForOverridenVal.kt
vendored
Normal file
20
compiler/testData/codegen/bytecodeText/accessorForOverridenVal.kt
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
package b
|
||||
|
||||
abstract class B {
|
||||
open val propWithFinal: Int
|
||||
get() = 1
|
||||
|
||||
open val propWithNonFinal: Int
|
||||
get() = 2
|
||||
}
|
||||
|
||||
abstract class Base: B() {
|
||||
override final val propWithFinal: Int = 3
|
||||
override val propWithNonFinal: Int = 4
|
||||
|
||||
fun fooFinal() = this.propWithFinal
|
||||
fun fooNonFinal() = this.propWithNonFinal
|
||||
}
|
||||
|
||||
// 2 GETFIELD b/Base.propWithFinal : I
|
||||
// 1 INVOKEVIRTUAL b/Base.getPropWithNonFinal \(\)I
|
||||
Reference in New Issue
Block a user