TEST:object initialization

This commit is contained in:
Vasily Levchenko
2016-10-21 05:28:10 +03:00
parent 5a30a0f2f9
commit 7d243378cd
3 changed files with 23 additions and 2 deletions
@@ -0,0 +1,10 @@
open class A(val a:Int, val b:Int)
open class B(val c:Int, d:Int):A(c, d)
//class C():B(42)
fun foo(i:Int, j:Int):Int {
val b = B(i, j)
return b.c
}