"field": synthetic variable creation in accessors, codegen changed accordingly, a set of tests, relevant code fix (j2k)

This commit is contained in:
Mikhail Glukhikh
2015-09-16 11:12:33 +03:00
parent 6282a16013
commit 9f640b00d9
26 changed files with 315 additions and 8 deletions
@@ -0,0 +1,18 @@
open class Base {
open val x: Int = 1
get() = field - 1
}
class Other: Base() {
override val x = 2
}
class Another: Base() {
override val x = 3
get() = field + 1
}
class NoBackingField: Base() {
override val x: Int
get() = 5
}