[LL FIR] add regression tests for KTIJ-23090
^KTIJ-23090 obsolete
This commit is contained in:
Vendored
+12
@@ -0,0 +1,12 @@
|
|||||||
|
fun main() {
|
||||||
|
println("Hello, Kotlin/Native!")
|
||||||
|
}
|
||||||
|
|
||||||
|
expect fun f()
|
||||||
|
|
||||||
|
fun test() {
|
||||||
|
}
|
||||||
|
|
||||||
|
actual fun f() { <expr>println("Hello")</expr> }
|
||||||
|
|
||||||
|
|
||||||
Vendored
+16
@@ -0,0 +1,16 @@
|
|||||||
|
KT element: KtCallExpression
|
||||||
|
FIR element: FirFunctionCallImpl
|
||||||
|
FIR source kind: KtRealSourceElementKind
|
||||||
|
|
||||||
|
FIR element rendered:
|
||||||
|
<Unresolved name: println>#(String(Hello))
|
||||||
|
|
||||||
|
FIR FILE:
|
||||||
|
FILE: [ResolvedTo(IMPORTS)] expectAndActualInTheSameFile.kt
|
||||||
|
[ResolvedTo(BODY_RESOLVE)] annotations container
|
||||||
|
public? final? [ResolvedTo(RAW_FIR)] fun main(): R|kotlin/Unit| { LAZY_BLOCK }
|
||||||
|
public? final? expect [ResolvedTo(RAW_FIR)] fun f(): R|kotlin/Unit|
|
||||||
|
public? final? [ResolvedTo(RAW_FIR)] fun test(): R|kotlin/Unit| { LAZY_BLOCK }
|
||||||
|
public final actual [ResolvedTo(BODY_RESOLVE)] [ExpectForActualAttributeKey={}] fun f(): R|kotlin/Unit| {
|
||||||
|
<Unresolved name: println>#(String(Hello))
|
||||||
|
}
|
||||||
+6
@@ -871,6 +871,12 @@ public class OutOfContentRootGetOrBuildFirTestGenerated extends AbstractOutOfCon
|
|||||||
runTest("analysis/low-level-api-fir/testdata/getOrBuildFir/invalidCode/duplicatedClassesFunctionParameter.kt");
|
runTest("analysis/low-level-api-fir/testdata/getOrBuildFir/invalidCode/duplicatedClassesFunctionParameter.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectAndActualInTheSameFile.kt")
|
||||||
|
public void testExpectAndActualInTheSameFile() throws Exception {
|
||||||
|
runTest("analysis/low-level-api-fir/testdata/getOrBuildFir/invalidCode/expectAndActualInTheSameFile.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("incompletePropertyWithAnnotation.kt")
|
@TestMetadata("incompletePropertyWithAnnotation.kt")
|
||||||
public void testIncompletePropertyWithAnnotation() throws Exception {
|
public void testIncompletePropertyWithAnnotation() throws Exception {
|
||||||
|
|||||||
+6
@@ -871,6 +871,12 @@ public class SourceGetOrBuildFirTestGenerated extends AbstractSourceGetOrBuildFi
|
|||||||
runTest("analysis/low-level-api-fir/testdata/getOrBuildFir/invalidCode/duplicatedClassesFunctionParameter.kt");
|
runTest("analysis/low-level-api-fir/testdata/getOrBuildFir/invalidCode/duplicatedClassesFunctionParameter.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectAndActualInTheSameFile.kt")
|
||||||
|
public void testExpectAndActualInTheSameFile() throws Exception {
|
||||||
|
runTest("analysis/low-level-api-fir/testdata/getOrBuildFir/invalidCode/expectAndActualInTheSameFile.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("incompletePropertyWithAnnotation.kt")
|
@TestMetadata("incompletePropertyWithAnnotation.kt")
|
||||||
public void testIncompletePropertyWithAnnotation() throws Exception {
|
public void testIncompletePropertyWithAnnotation() throws Exception {
|
||||||
|
|||||||
Reference in New Issue
Block a user