[K2 JS] Unmute and link to issue some JS K2 tests

This commit is contained in:
Alexander Korepanov
2024-01-02 14:45:36 +01:00
committed by Space Team
parent 7773fdab9a
commit f5d0c22736
21 changed files with 231 additions and 29 deletions
@@ -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()
}
}