[FIR] Complete types of array literals in annotations
This commit is contained in:
+4
@@ -0,0 +1,4 @@
|
||||
annotation class Ann(vararg val strings: String)
|
||||
|
||||
@Ann(strings = ["hello"])
|
||||
class A
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
FILE: namedArrayInAnnotation.kt
|
||||
public final annotation class Ann : R|kotlin/Annotation| {
|
||||
public constructor(vararg strings: R|kotlin/Array<out kotlin/String>|): R|Ann| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final val strings: R|kotlin/Array<out kotlin/String>| = R|<local>/strings|
|
||||
public get(): R|kotlin/Array<out kotlin/String>|
|
||||
|
||||
}
|
||||
@R|Ann|(vararg(strings = <implicitArrayOf>(String(hello)))) public final class A : R|kotlin/Any| {
|
||||
public constructor(): R|A| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
}
|
||||
Generated
+5
@@ -530,6 +530,11 @@ public class FirDiagnosticsTestGenerated extends AbstractFirDiagnosticsTest {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/arguments/lambdaInUnresolvedCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("namedArrayInAnnotation.kt")
|
||||
public void testNamedArrayInAnnotation() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/arguments/namedArrayInAnnotation.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("operatorsOverLiterals.kt")
|
||||
public void testOperatorsOverLiterals() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/arguments/operatorsOverLiterals.kt");
|
||||
|
||||
+5
@@ -530,6 +530,11 @@ public class FirDiagnosticsWithLightTreeTestGenerated extends AbstractFirDiagnos
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/arguments/lambdaInUnresolvedCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("namedArrayInAnnotation.kt")
|
||||
public void testNamedArrayInAnnotation() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/arguments/namedArrayInAnnotation.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("operatorsOverLiterals.kt")
|
||||
public void testOperatorsOverLiterals() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/arguments/operatorsOverLiterals.kt");
|
||||
|
||||
Reference in New Issue
Block a user