[FIR] Implement support of MPP in JS CLI

This commit is contained in:
Ivan Kochurkin
2023-01-23 20:50:19 +01:00
committed by Space Team
parent d401ff7b09
commit f3e3cc0037
8 changed files with 148 additions and 54 deletions
+10
View File
@@ -0,0 +1,10 @@
$TESTDATA_DIR$/firMpp/common.kt
$TESTDATA_DIR$/firMpp/jvm.kt
-Xcommon-sources=$TESTDATA_DIR$/firMpp/common.kt
-language-version
2.0
-ir-output-dir
$TEMP_DIR$
-ir-output-name
firMpp
-XXLanguage\:+MultiPlatformProjects
+11
View File
@@ -0,0 +1,11 @@
warning: ATTENTION!
This build uses unsafe internal compiler arguments:
-XXLanguage:+MultiPlatformProjects
This mode is not recommended for production use,
as no stability/compatibility guarantees are given on
compiler or generated code. Use it at your own risk!
warning: language version 2.0 is experimental, there are no backwards compatibility guarantees for new language and library features
OK
+1
View File
@@ -0,0 +1 @@
expect fun foo(): String
+5
View File
@@ -0,0 +1,5 @@
actual fun foo() = "OK"
fun test(): String {
return foo()
}