K1/K2: add test to confirm KT-61100 behavior

This commit is contained in:
Mikhail Glukhikh
2023-10-31 14:59:37 +01:00
committed by Space Team
parent af58b30e5f
commit d6cefb363b
6 changed files with 45 additions and 0 deletions
@@ -20624,6 +20624,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
runTest("compiler/testData/diagnostics/tests/j+k/annotationsInheritance.kt");
}
@Test
@TestMetadata("arrayAnnotationConstructorReference.kt")
public void testArrayAnnotationConstructorReference() throws Exception {
runTest("compiler/testData/diagnostics/tests/j+k/arrayAnnotationConstructorReference.kt");
}
@Test
@TestMetadata("arrayOfStarParametrized.kt")
public void testArrayOfStarParametrized() throws Exception {
@@ -20624,6 +20624,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
runTest("compiler/testData/diagnostics/tests/j+k/annotationsInheritance.kt");
}
@Test
@TestMetadata("arrayAnnotationConstructorReference.kt")
public void testArrayAnnotationConstructorReference() throws Exception {
runTest("compiler/testData/diagnostics/tests/j+k/arrayAnnotationConstructorReference.kt");
}
@Test
@TestMetadata("arrayOfStarParametrized.kt")
public void testArrayOfStarParametrized() throws Exception {
@@ -20618,6 +20618,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
runTest("compiler/testData/diagnostics/tests/j+k/annotationsInheritance.kt");
}
@Test
@TestMetadata("arrayAnnotationConstructorReference.kt")
public void testArrayAnnotationConstructorReference() throws Exception {
runTest("compiler/testData/diagnostics/tests/j+k/arrayAnnotationConstructorReference.kt");
}
@Test
@TestMetadata("arrayOfStarParametrized.kt")
public void testArrayOfStarParametrized() throws Exception {
@@ -20624,6 +20624,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
runTest("compiler/testData/diagnostics/tests/j+k/annotationsInheritance.kt");
}
@Test
@TestMetadata("arrayAnnotationConstructorReference.kt")
public void testArrayAnnotationConstructorReference() throws Exception {
runTest("compiler/testData/diagnostics/tests/j+k/arrayAnnotationConstructorReference.kt");
}
@Test
@TestMetadata("arrayOfStarParametrized.kt")
public void testArrayOfStarParametrized() throws Exception {
@@ -0,0 +1,15 @@
// FIR_IDENTICAL
// WITH_REFLECT
// FILE: Ann.java
public @interface Ann {
String[] value();
}
// FILE: Test.kt
import kotlin.reflect.*
fun test() {
val x: KFunction1<Array<out String>, Ann> = ::<!CALLABLE_REFERENCE_TO_ANNOTATION_CONSTRUCTOR!>Ann<!>
}
@@ -20624,6 +20624,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
runTest("compiler/testData/diagnostics/tests/j+k/annotationsInheritance.kt");
}
@Test
@TestMetadata("arrayAnnotationConstructorReference.kt")
public void testArrayAnnotationConstructorReference() throws Exception {
runTest("compiler/testData/diagnostics/tests/j+k/arrayAnnotationConstructorReference.kt");
}
@Test
@TestMetadata("arrayOfStarParametrized.kt")
public void testArrayOfStarParametrized() throws Exception {