A couple of new tests

for boxing
    and for body assignment in an interface
This commit is contained in:
Alexander Gorshenev
2016-11-22 13:52:24 +03:00
committed by alexander-gorshenev
parent 2a0d01191a
commit 268e3b26c0
3 changed files with 40 additions and 0 deletions
@@ -0,0 +1,17 @@
interface A {
fun b() = c()
fun c()
}
class B(): A {
override fun c() {
println("PASSED")
}
}
fun main(args: Array<String>) {
val a:A = B()
a.b()
}