backend: Don't process FAKE_OVERRIDE properties in lateinit lowering

This commit is contained in:
Ilya Matveev
2017-06-09 14:46:16 +07:00
committed by ilmat192
parent a23c64012b
commit a18e9dbe0d
3 changed files with 22 additions and 1 deletions
+5
View File
@@ -829,6 +829,11 @@ task lateinit_notInitialized(type: RunKonanTest) {
source = "codegen/lateinit/notInitialized.kt"
}
task lateinit_inBaseClass(type: RunKonanTest) {
goldValue = "42\n"
source = "codegen/lateinit/inBaseClass.kt"
}
task coroutines_simple(type: RunKonanTest) {
goldValue = "42\n"
source = "codegen/coroutines/simple.kt"
@@ -0,0 +1,15 @@
class A(val a: Int)
open class B {
lateinit var a: A
}
class C: B() {
fun foo() { a = A(42) }
}
fun main(args: Array<String>) {
val c = C()
c.foo()
println(c.a.a)
}