FIR JS: add K2 variants of all other JS tests

except tests that are not possible to add without some modifications in
the test infra. See todos on the commented-out test declarations
This commit is contained in:
Ilya Chernikov
2022-08-17 18:32:23 +02:00
parent 5baf4a55c1
commit 78ca733c38
133 changed files with 42615 additions and 147 deletions
@@ -1,6 +1,6 @@
// WITH_STDLIB
// IGNORE_BACKEND: WASM
// IGNORE_BACKEND_K2: JVM_IR
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
// FIR status: ARGUMENT_TYPE_MISMATCH at contribute arguments
// TARGET_BACKEND: JVM
@@ -1,5 +1,5 @@
// !LANGUAGE: +UnrestrictedBuilderInference
// IGNORE_BACKEND_K2: JVM_IR
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
// FIR status: NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER on lazy call (Name3, T)
// WITH_STDLIB
@@ -1,5 +1,5 @@
// WITH_STDLIB
// IGNORE_BACKEND_K2: JVM_IR
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
// FIR status: different behavour with FE 1.0, reported `NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER`
fun box(): String {
@@ -1,7 +1,7 @@
// !LANGUAGE: +UnrestrictedBuilderInference
// !DIAGNOSTICS: -DEPRECATION -OPT_IN_IS_NOT_ENABLED
// WITH_STDLIB
// IGNORE_BACKEND_K2: JVM_IR
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
// FIR status: NONE_APPLICABLE at all equals calls
import kotlin.experimental.ExperimentalTypeInference
@@ -1,7 +1,7 @@
// !LANGUAGE: +UnrestrictedBuilderInference -UseBuilderInferenceOnlyIfNeeded
// WITH_STDLIB
// !DIAGNOSTICS: -OPT_IN_USAGE_ERROR -CAST_NEVER_SUCCEEDS
// IGNORE_BACKEND_K2: JVM_IR
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
// FIR status: Initializer type mismatch at first val x = : expected kotlin/collections/MutableList<kotlin/CharSequence>, actual kotlin/collections/MutableList<kotlin/String>
import kotlin.experimental.ExperimentalTypeInference