[FIR] Report UNSUPPORTED_FEATURE for expect/actual members if MPP is disabled
Always enable MultiPlatformProjects for K2MetadataCompilerArguments ^KT-57243 Fixed
This commit is contained in:
committed by
Space Team
parent
16ed06d4e9
commit
994c2229df
@@ -5,7 +5,6 @@ $TESTDATA_DIR$/../jvm/hmpp/src/c.kt
|
||||
$TEMP_DIR$
|
||||
-language-version
|
||||
2.0
|
||||
-XXLanguage\:+MultiPlatformProjects
|
||||
-Xfragments=a,b,c
|
||||
-Xfragment-sources=a\:$TESTDATA_DIR$/../jvm/hmpp/src/a.kt
|
||||
-Xfragment-sources=b\:$TESTDATA_DIR$/../jvm/hmpp/src/b.kt
|
||||
|
||||
@@ -1,12 +1,3 @@
|
||||
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
|
||||
error: HMPP module structure should not be passed during metadata compilation. Please remove `-Xfragments` and related flags
|
||||
COMPILATION_ERROR
|
||||
|
||||
@@ -3,6 +3,11 @@ $TESTDATA_DIR$/inheritorOfExpectSealedClass/common-2.kt
|
||||
$TESTDATA_DIR$/inheritorOfExpectSealedClass/common-3.kt
|
||||
-d
|
||||
$TEMP_DIR$
|
||||
-Xcommon-sources=$TESTDATA_DIR$/inheritorOfExpectSealedClass/common-1.kt,$TESTDATA_DIR$/inheritorOfExpectSealedClass/common-2.kt
|
||||
-language-version
|
||||
2.0
|
||||
2.0
|
||||
-Xfragments=a,b,c
|
||||
-Xfragment-sources=a\:$TESTDATA_DIR$/inheritorOfExpectSealedClass/common-1.kt
|
||||
-Xfragment-sources=b\:$TESTDATA_DIR$/inheritorOfExpectSealedClass/common-2.kt
|
||||
-Xfragment-sources=c\:$TESTDATA_DIR$/inheritorOfExpectSealedClass/common-3.kt
|
||||
-Xfragment-refines=b\:a
|
||||
-Xfragment-refines=c\:b
|
||||
@@ -1,2 +1,3 @@
|
||||
warning: language version 2.0 is experimental, there are no backwards compatibility guarantees for new language and library features
|
||||
OK
|
||||
error: HMPP module structure should not be passed during metadata compilation. Please remove `-Xfragments` and related flags
|
||||
COMPILATION_ERROR
|
||||
|
||||
Reference in New Issue
Block a user