JS IR: mute codegen box tests automatically

This commit is contained in:
Anton Bannykh
2018-06-07 14:17:45 +03:00
parent 7e1713af44
commit 96355e2732
2384 changed files with 2384 additions and 0 deletions
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// LANGUAGE_VERSION: 1.2
// WITH_REFLECT
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun booleanVararg(vararg xs: Boolean) {
if (xs.size != 1 && xs[0] != true) throw AssertionError()
}
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun aa(vararg a : String): String = a[0]
fun box(): String {
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
package whats.the.difference
fun iarray(vararg a : Int) = a // BUG
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun barB(vararg args: Byte) = args
fun barC(vararg args: Char) = args
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
operator fun <T> Array<T>?.get(i : Int?) = this!!.get(i!!)
fun <T> array(vararg t : T) : Array<T> = t as Array<T>
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
import kotlin.test.*
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun box(): String {
if (test1() != "") return "fail 1"
if (test1(1) != "1") return "fail 2"
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun foo(a: Int, vararg b: Int, f: (IntArray) -> String): String {
return "test" + a + " " + f(b)
}