Make several tests running on JS backend.
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS
|
||||
// WITH_RUNTIME
|
||||
|
||||
import java.util.Arrays
|
||||
|
||||
fun foo(): List<String>? = Arrays.asList("abcde")
|
||||
fun foo(): List<String>? = listOf("abcde")
|
||||
|
||||
fun box(): String {
|
||||
for (i in 1..3) {
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS
|
||||
|
||||
import java.util.*
|
||||
// WITH_RUNTIME
|
||||
|
||||
class A() {
|
||||
infix fun <T> ArrayList<T>.add3(el: T) = add(el)
|
||||
@@ -22,6 +19,6 @@ fun box() : String{
|
||||
list add2 i
|
||||
}
|
||||
A().test(list)
|
||||
System.out?.println(list)
|
||||
println(list)
|
||||
return "OK"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user