Remove duplicate tests from JS compiler test set. Merge chages to common compiler tests

This commit is contained in:
Svyatoslav Kuzmich
2019-02-18 15:40:23 +03:00
parent a736756ceb
commit beb5f73a2b
80 changed files with 56 additions and 2086 deletions
@@ -1,3 +1,7 @@
fun run(arg1: A, arg2: String, funRef:A.(String) -> Unit): Unit {
return arg1.funRef(arg2)
}
class A {
var result = "Fail"
}
@@ -10,5 +14,12 @@ fun box(): String {
val a = A()
val x = A::foo
x(a, "OK")
return a.result
if (a.result != "OK") return a.result
val a1 = A()
run(a1, "OK", A::foo)
if (a1.result != "OK") return a1.result
return "OK"
}