JS: move expressions test to box tests
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package foo
|
||||
|
||||
open class A {
|
||||
open fun foo(a: Int = 1) = a
|
||||
}
|
||||
|
||||
class B : A() {
|
||||
override fun foo(a: Int) = a + 1
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val result = B().foo()
|
||||
if (result != 2) return "fail: $result"
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user