JS: create new common directory for all generated tests, migrate several tests there

This commit is contained in:
Alexey Andreev
2016-08-26 16:44:48 +03:00
parent 34a57f863b
commit 2bf0199959
321 changed files with 2123 additions and 2001 deletions
@@ -0,0 +1,27 @@
package foo
object A {
val a = 1
fun foo() = 31
val f = { a + foo() }
}
class B {
companion object {
val a = 21
fun foo() = 3
val f = { this.a + this.foo() }
}
}
fun box(): String {
val a = A.f()
if (a != 32) return "a != 32, a = $a"
val b = B.f()
if (b != 24) return "b != 24, b = $b"
return "OK"
}