[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:
committed by
Space Team
parent
2a391f7330
commit
360d236b7e
Vendored
+2
@@ -5,3 +5,5 @@ $TESTDATA_DIR$/fir.kt
|
||||
$TEMP_DIR$
|
||||
-ir-output-name
|
||||
fir
|
||||
-libraries
|
||||
libraries/stdlib/js-ir/build/classes/kotlin/js/main
|
||||
|
||||
Vendored
+2
@@ -8,3 +8,5 @@ $TEMP_DIR$
|
||||
-ir-output-name
|
||||
firMpp
|
||||
-XXLanguage\:+MultiPlatformProjects
|
||||
-libraries
|
||||
libraries/stdlib/js-ir/build/classes/kotlin/js/main
|
||||
|
||||
@@ -9,3 +9,5 @@ $TEMP_DIR$
|
||||
firMppWithKlib
|
||||
-XXLanguage\:+MultiPlatformProjects
|
||||
-Xir-produce-klib-file=true
|
||||
-libraries
|
||||
libraries/stdlib/js-ir/build/classes/kotlin/js/main
|
||||
|
||||
@@ -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
|
||||
|
||||
+2
-2
@@ -1,3 +1,3 @@
|
||||
import kotlin.Cloneable
|
||||
import kotlin.<!UNRESOLVED_IMPORT!>Cloneable<!>
|
||||
|
||||
fun cloneable(): Cloneable = intArrayOf(42)
|
||||
fun cloneable(): <!UNRESOLVED_REFERENCE!>Cloneable<!> = intArrayOf(42)
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user