[LL FIR] add regression tests for KTIJ-23090

^KTIJ-23090 obsolete
This commit is contained in:
Ilya Kirillov
2023-06-23 15:13:43 +02:00
committed by teamcity
parent 048ecdf981
commit 26e9e9de11
4 changed files with 40 additions and 0 deletions
@@ -0,0 +1,12 @@
fun main() {
println("Hello, Kotlin/Native!")
}
expect fun f()
fun test() {
}
actual fun f() { <expr>println("Hello")</expr> }
@@ -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))
}
@@ -871,6 +871,12 @@ public class OutOfContentRootGetOrBuildFirTestGenerated extends AbstractOutOfCon
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
@TestMetadata("incompletePropertyWithAnnotation.kt")
public void testIncompletePropertyWithAnnotation() throws Exception {
@@ -871,6 +871,12 @@ public class SourceGetOrBuildFirTestGenerated extends AbstractSourceGetOrBuildFi
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
@TestMetadata("incompletePropertyWithAnnotation.kt")
public void testIncompletePropertyWithAnnotation() throws Exception {