JS: move more test to box tests

This commit is contained in:
Alexey Andreev
2016-08-29 14:14:34 +03:00
parent cdf2212c73
commit a18f5eca2d
43 changed files with 374 additions and 456 deletions
@@ -0,0 +1,26 @@
// FILE: a.kt
package foo
open class A() {
open fun f() = 3;
}
open class C() : B() {
override fun f() = 5
}
// FILE: b.kt
package foo
open class B() : A() {
override fun f() = 4
}
fun box(): String {
if (A().f() != 3) return "fail1"
if (B().f() != 4) return "fail2"
if (C().f() != 5) return "fail3"
return "OK"
}