mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 00:21:26 +00:00
Generate all bodies in interfaces as default methods
This commit is contained in:
13
compiler/testData/codegen/java8/box/jvm8/simpleProperty.kt
vendored
Normal file
13
compiler/testData/codegen/java8/box/jvm8/simpleProperty.kt
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
// JVM_TARGET: 1.8
|
||||
|
||||
interface Z {
|
||||
val z: String;
|
||||
get() = "OK"
|
||||
}
|
||||
|
||||
|
||||
class Test : Z
|
||||
|
||||
fun box() : String {
|
||||
return Test().z
|
||||
}
|
||||
15
compiler/testData/codegen/java8/writeFlags/defaultProperty.kt
vendored
Normal file
15
compiler/testData/codegen/java8/writeFlags/defaultProperty.kt
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
// JVM_TARGET: 1.8
|
||||
|
||||
interface Test {
|
||||
var z: String
|
||||
get() = "OK"
|
||||
set(value) {}
|
||||
}
|
||||
|
||||
// TESTED_OBJECT_KIND: function
|
||||
// TESTED_OBJECTS: Test, getZ
|
||||
// FLAGS: ACC_PUBLIC
|
||||
|
||||
// TESTED_OBJECT_KIND: function
|
||||
// TESTED_OBJECTS: Test, setZ
|
||||
// FLAGS: ACC_PUBLIC
|
||||
Reference in New Issue
Block a user