[FIR] Implement FIR metadata serialization
Add FirMetadataSerializer Add CLI metadata tests on FIR
This commit is contained in:
committed by
Space Team
parent
46b9e15101
commit
44b7859356
@@ -0,0 +1,5 @@
|
||||
$TESTDATA_DIR$/anonymousObjectType.kt
|
||||
-d
|
||||
$TEMP_DIR$
|
||||
-language-version
|
||||
2.0
|
||||
+1
-2
@@ -1,3 +1,2 @@
|
||||
warning: language version 2.0 is experimental, there are no backwards compatibility guarantees for new language and library features
|
||||
error: compilation to metadata is not supported with language version 2.0 right now
|
||||
COMPILATION_ERROR
|
||||
OK
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
package test
|
||||
|
||||
expect class Some
|
||||
@@ -0,0 +1,8 @@
|
||||
$TESTDATA_DIR$/inheritorOfExpectSealedClass/common-1.kt
|
||||
$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
|
||||
@@ -0,0 +1,2 @@
|
||||
warning: language version 2.0 is experimental, there are no backwards compatibility guarantees for new language and library features
|
||||
OK
|
||||
Vendored
+3
-3
@@ -1,5 +1,5 @@
|
||||
$TESTDATA_DIR$/fir.kt
|
||||
-language-version
|
||||
2.0
|
||||
$TESTDATA_DIR$/../kotlinPackage.kt
|
||||
-d
|
||||
$TEMP_DIR$
|
||||
-language-version
|
||||
2.0
|
||||
@@ -0,0 +1,5 @@
|
||||
warning: language version 2.0 is experimental, there are no backwards compatibility guarantees for new language and library features
|
||||
compiler/testData/cli/kotlinPackage.kt:1:1: error: only the Kotlin standard library is allowed to use the 'kotlin' package
|
||||
package kotlin.mylibrary
|
||||
^
|
||||
COMPILATION_ERROR
|
||||
@@ -0,0 +1,7 @@
|
||||
$TESTDATA_DIR$/moduleName.kt
|
||||
-d
|
||||
$TEMP_DIR$
|
||||
-module-name
|
||||
foo
|
||||
-language-version
|
||||
2.0
|
||||
@@ -0,0 +1,2 @@
|
||||
warning: language version 2.0 is experimental, there are no backwards compatibility guarantees for new language and library features
|
||||
OK
|
||||
@@ -0,0 +1,7 @@
|
||||
$TESTDATA_DIR$/optionalExpectationUsage.kt
|
||||
-d
|
||||
$TEMP_DIR$
|
||||
-cp
|
||||
$TESTDATA_DIR$/../../../../dist/common/kotlin-stdlib-common.jar
|
||||
-language-version
|
||||
2.0
|
||||
@@ -0,0 +1,2 @@
|
||||
warning: language version 2.0 is experimental, there are no backwards compatibility guarantees for new language and library features
|
||||
OK
|
||||
Reference in New Issue
Block a user