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,24 @@
package foo
public class Foo {
public fun blah(): Int {
return 5
}
}
public fun Foo.fooImp(): String {
return "impl" + blah()
}
public fun Foo.fooExp(): String {
return "expl" + this.blah()
}
fun box(): String {
var a = Foo()
if (a.fooImp() != "impl5") return "fail1: ${a.fooImp()}"
if (a.fooExp() != "expl5") return "fail2: ${a.fooExp()}"
return "OK";
}