[K2 JS] Unmute and link to issue some JS K2 tests
This commit is contained in:
committed by
Space Team
parent
7773fdab9a
commit
f5d0c22736
+2
-1
@@ -1,4 +1,5 @@
|
||||
// IGNORE_BACKEND_K2: JS_IR, JS_IR_ES6, WASM
|
||||
// K2 issue: KT-64801
|
||||
|
||||
class Outer(val x: Any) {
|
||||
inner class Inner(
|
||||
@@ -6,4 +7,4 @@ class Outer(val x: Any) {
|
||||
)
|
||||
}
|
||||
|
||||
fun box() = Outer("OK").Inner().fn()
|
||||
fun box() = Outer("OK").Inner().fn()
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
// IGNORE_BACKEND_K2: JS_IR, JS_IR_ES6, WASM
|
||||
// K2 issue: KT-64801
|
||||
|
||||
class Outer(val x: Any) {
|
||||
inner class Inner(
|
||||
@@ -11,4 +12,4 @@ class Outer(val x: Any) {
|
||||
}
|
||||
}
|
||||
|
||||
fun box() = Outer("OK").Inner(1).fn()
|
||||
fun box() = Outer("OK").Inner(1).fn()
|
||||
|
||||
-1
@@ -1,5 +1,4 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// IGNORE_BACKEND_K2: JS_IR, JS_IR_ES6
|
||||
// WITH_REFLECT
|
||||
// WITH_STDLIB
|
||||
// FILE: J.java
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
// !LANGUAGE: +ContextReceivers
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// IGNORE_BACKEND_K2: JS_IR, JS_IR_ES6
|
||||
// WITH_STDLIB
|
||||
|
||||
class A(val ok: String)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// IGNORE_BACKEND_K2: JS_IR, JS_IR_ES6, WASM
|
||||
|
||||
// K2 issue: KT-64801
|
||||
// KT-40686
|
||||
|
||||
|
||||
@@ -22,4 +22,4 @@ fun box(): String {
|
||||
if (rr != "ABC") return "FAIL: $rr"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
|
||||
-1
@@ -1,5 +1,4 @@
|
||||
// !LANGUAGE: +MultiPlatformProjects
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// FIR status: expect/actual in the same module (ACTUAL_WITHOUT_EXPECT)
|
||||
// TARGET_BACKEND: JVM
|
||||
// IGNORE_BACKEND_K2: ANY
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
// IGNORE_BACKEND_K2: JS_IR, JS_IR_ES6
|
||||
// CHECK_CASES_COUNT: function=crash count=2 TARGET_BACKENDS=JS
|
||||
// CHECK_CASES_COUNT: function=crash count=0 IGNORED_BACKENDS=JS
|
||||
// CHECK_IF_COUNT: function=crash count=1 TARGET_BACKENDS=JS
|
||||
// CHECK_IF_COUNT: function=crash count=3 IGNORED_BACKENDS=JS
|
||||
|
||||
class EncapsulatedEnum<T : Enum<T>>(val value: T)
|
||||
|
||||
@@ -28,4 +25,4 @@ var res = "fail"
|
||||
fun box(): String {
|
||||
crash(EncapsulatedEnum(MyEnum.VALUE_A))
|
||||
return res
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
// IGNORE_BACKEND_K2: JS_IR, JS_IR_ES6
|
||||
// JVM_ABI_K1_K2_DIFF: KT-62903
|
||||
// CHECK_CASES_COUNT: function=doTheThing count=2 TARGET_BACKENDS=JS
|
||||
// CHECK_CASES_COUNT: function=doTheThing count=0 IGNORED_BACKENDS=JS
|
||||
// CHECK_IF_COUNT: function=doTheThing count=2 TARGET_BACKENDS=JS
|
||||
// CHECK_IF_COUNT: function=doTheThing count=4 IGNORED_BACKENDS=JS
|
||||
|
||||
private fun Any?.doTheThing(): String {
|
||||
when (this) {
|
||||
@@ -28,4 +25,4 @@ enum class Level {
|
||||
|
||||
fun box(): String {
|
||||
return "O".doTheThing() + Level.K.doTheThing()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// IGNORE_ERRORS
|
||||
// ERROR_POLICY: SEMANTIC
|
||||
// IGNORE_BACKEND_K2: JS_IR, JS_IR_ES6
|
||||
// K2 issue: KT-55250
|
||||
|
||||
// MODULE: lib
|
||||
// FILE: t.kt
|
||||
@@ -20,4 +21,4 @@ fun foo() {
|
||||
fun box(): String {
|
||||
foo()
|
||||
return storage
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// IGNORE_ERRORS
|
||||
// ERROR_POLICY: SEMANTIC
|
||||
// IGNORE_BACKEND_K2: JS_IR, JS_IR_ES6
|
||||
// K2 issue: KT-64810
|
||||
|
||||
// MODULE: lib
|
||||
// FILE: t.kt
|
||||
@@ -23,4 +24,4 @@ fun box(): String {
|
||||
return "OK"
|
||||
}
|
||||
return "FAIL"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// IGNORE_ERRORS
|
||||
// ERROR_POLICY: SEMANTIC
|
||||
// IGNORE_BACKEND_K2: JS_IR, JS_IR_ES6
|
||||
// K2 issue: KT-64817
|
||||
|
||||
// MODULE: lib
|
||||
// FILE: t.kt
|
||||
@@ -32,4 +33,4 @@ fun box(): String {
|
||||
}
|
||||
}
|
||||
return "FAIL"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// IGNORE_ERRORS
|
||||
// ERROR_POLICY: SYNTAX
|
||||
// IGNORE_BACKEND_K2: JS_IR, JS_IR_ES6
|
||||
// K2 issue: KT-64845
|
||||
|
||||
// MODULE: lib
|
||||
// FILE: t.kt
|
||||
@@ -39,4 +40,4 @@ fun box(): String {
|
||||
}
|
||||
}
|
||||
return "FAIL"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// IGNORE_ERRORS
|
||||
// ERROR_POLICY: SYNTAX
|
||||
// IGNORE_BACKEND_K2: JS_IR, JS_IR_ES6
|
||||
// K2 issue: KT-64820
|
||||
|
||||
// MODULE: lib
|
||||
// FILE: t.kt
|
||||
@@ -21,4 +22,4 @@ fun box(): String {
|
||||
return "OK"
|
||||
}
|
||||
return "FAIL"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user