[FIR] Introduce MetadataBasedAnnotationDeserializer for compiling common

^KT-56361 Fixed
This commit is contained in:
Kirill Rakhman
2023-02-03 17:51:50 +01:00
committed by Space Team
parent 81ac94b2d7
commit 22fd7921fe
11 changed files with 80 additions and 22 deletions
@@ -0,0 +1,5 @@
$TESTDATA_DIR$/lambdaWithReceiver.kt
-d
$TEMP_DIR$
-cp
$TESTDATA_DIR$/../../../../dist/common/kotlin-stdlib-common.jar
+7
View File
@@ -0,0 +1,7 @@
fun foo() {
"OK".apply { this }
"OK".apply2 { this }
}
inline fun String.apply2(f: String.() -> String) = this.f()
+4
View File
@@ -0,0 +1,4 @@
compiler/testData/cli/metadata/lambdaWithReceiver.kt:2:18: warning: the expression is unused
"OK".apply { this }
^
OK
@@ -0,0 +1,7 @@
$TESTDATA_DIR$/lambdaWithReceiver.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