[FIR] Introduce MetadataBasedAnnotationDeserializer for compiling common
^KT-56361 Fixed
This commit is contained in:
committed by
Space Team
parent
81ac94b2d7
commit
22fd7921fe
@@ -0,0 +1,5 @@
|
||||
$TESTDATA_DIR$/lambdaWithReceiver.kt
|
||||
-d
|
||||
$TEMP_DIR$
|
||||
-cp
|
||||
$TESTDATA_DIR$/../../../../dist/common/kotlin-stdlib-common.jar
|
||||
@@ -0,0 +1,7 @@
|
||||
fun foo() {
|
||||
"OK".apply { this }
|
||||
"OK".apply2 { this }
|
||||
}
|
||||
|
||||
|
||||
inline fun String.apply2(f: String.() -> String) = this.f()
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user