Added link test, checking correct object field layout.

This commit is contained in:
Igor Chevdar
2017-02-28 15:05:30 +03:00
parent f534616e19
commit 889b28ee87
4 changed files with 61 additions and 1 deletions
@@ -0,0 +1,17 @@
import a.*
open class C: B() {
override val x: Int = 156
fun foo() {
println(x)
println(super<B>.x)
bar()
}
}
fun main(args: Array<String>) {
val c = C()
c.foo()
}