mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
Support properties in compatibility mode
This commit is contained in:
26
compiler/testData/codegen/java8/bytecodeText/jvmDefault/compatibility/simpleProperty.kt
vendored
Normal file
26
compiler/testData/codegen/java8/bytecodeText/jvmDefault/compatibility/simpleProperty.kt
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
// !API_VERSION: 1.3
|
||||
// !JVM_DEFAULT_MODE: compatibility
|
||||
// JVM_TARGET: 1.8
|
||||
// WITH_RUNTIME
|
||||
|
||||
interface KInterface {
|
||||
|
||||
@JvmDefault
|
||||
var bar: String
|
||||
get() = "OK"
|
||||
set(field) {}
|
||||
}
|
||||
|
||||
interface KInterface2 : KInterface {
|
||||
|
||||
}
|
||||
|
||||
// 1 INVOKESTATIC KInterface2.access\$getBar\$jd
|
||||
// 1 INVOKESTATIC KInterface2.access\$setBar\$jd
|
||||
// 1 INVOKESTATIC KInterface.access\$getBar\$jd
|
||||
// 1 INVOKESTATIC KInterface.access\$setBar\$jd
|
||||
|
||||
// 1 INVOKESPECIAL KInterface2.getBar
|
||||
// 1 INVOKESPECIAL KInterface2.setBar
|
||||
// 1 INVOKESPECIAL KInterface.getBar
|
||||
// 1 INVOKESPECIAL KInterface.setBar
|
||||
Reference in New Issue
Block a user