[FIR JS] KT-57601: Get rid of the builtin provider

In this example we get 2 variants of `kotlin/toString()`:
one coming from the KLib provider, and the
other coming from the builtins provider.
These are identical deserialized functions.

^KT-57601 Fixed
This commit is contained in:
Nikolay Lunyak
2023-04-10 15:48:21 +03:00
committed by Space Team
parent 2a391f7330
commit 360d236b7e
11 changed files with 19 additions and 8 deletions
+2
View File
@@ -5,3 +5,5 @@ $TESTDATA_DIR$/fir.kt
$TEMP_DIR$
-ir-output-name
fir
-libraries
libraries/stdlib/js-ir/build/classes/kotlin/js/main
+2
View File
@@ -8,3 +8,5 @@ $TEMP_DIR$
-ir-output-name
firMpp
-XXLanguage\:+MultiPlatformProjects
-libraries
libraries/stdlib/js-ir/build/classes/kotlin/js/main
+2
View File
@@ -9,3 +9,5 @@ $TEMP_DIR$
firMppWithKlib
-XXLanguage\:+MultiPlatformProjects
-Xir-produce-klib-file=true
-libraries
libraries/stdlib/js-ir/build/classes/kotlin/js/main
+2
View File
@@ -14,3 +14,5 @@ fir-hmpp
-Xfragment-sources=c\:$TESTDATA_DIR$/../jvm/hmpp/src/c.kt
-Xfragment-refines=b\:a
-Xfragment-refines=c\:b
-libraries
libraries/stdlib/js-ir/build/classes/kotlin/js/main
@@ -1,3 +1,3 @@
import kotlin.Cloneable
import kotlin.<!UNRESOLVED_IMPORT!>Cloneable<!>
fun cloneable(): Cloneable = intArrayOf(42)
fun cloneable(): <!UNRESOLVED_REFERENCE!>Cloneable<!> = intArrayOf(42)
+3
View File
@@ -2,6 +2,9 @@
// SKIP_KLIB_TEST
// IGNORE_BACKEND_K1: JS_IR
// IGNORE_BACKEND_K1: JS_IR_ES6
// IGNORE_BACKEND_K2: JS_IR
// IGNORE_BACKEND_K2: JS_IR_ES6
// STATUS: This should not work in JS, Cloneable is JVM-specific API
class A : Cloneable