K2: reproduce KT-58002
This commit is contained in:
committed by
Space Team
parent
5cff8c15ab
commit
0a126a173e
+6
@@ -18379,6 +18379,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
|
||||
runTest("compiler/testData/codegen/box/fir/emptyIntersectionWarning.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("enumEntryInTypeJavaAnnotation.kt")
|
||||
public void testEnumEntryInTypeJavaAnnotation() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/enumEntryInTypeJavaAnnotation.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ExtensionAlias.kt")
|
||||
public void testExtensionAlias() throws Exception {
|
||||
|
||||
+6
@@ -18379,6 +18379,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
|
||||
runTest("compiler/testData/codegen/box/fir/emptyIntersectionWarning.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("enumEntryInTypeJavaAnnotation.kt")
|
||||
public void testEnumEntryInTypeJavaAnnotation() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/enumEntryInTypeJavaAnnotation.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ExtensionAlias.kt")
|
||||
public void testExtensionAlias() throws Exception {
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
// ISSUE: KT-58002
|
||||
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR
|
||||
|
||||
// FILE: NLS.java
|
||||
import java.lang.annotation.*;
|
||||
|
||||
@Target(ElementType.TYPE_USE)
|
||||
public @interface NLS {
|
||||
enum Capitalization { NotSpecified, Specified }
|
||||
Capitalization capitalization() default Capitalization.NotSpecified;
|
||||
}
|
||||
|
||||
// FILE: BaseInspection.java
|
||||
|
||||
public class BaseInspection {
|
||||
@NLS(capitalization = NLS.Capitalization.Specified)
|
||||
public static String fetchProbableBugs() {
|
||||
return "OK";
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: main.kt
|
||||
|
||||
fun getGroupDisplayName() = BaseInspection.fetchProbableBugs()
|
||||
fun box(): String = getGroupDisplayName()
|
||||
+6
@@ -18379,6 +18379,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/fir/emptyIntersectionWarning.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("enumEntryInTypeJavaAnnotation.kt")
|
||||
public void testEnumEntryInTypeJavaAnnotation() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/enumEntryInTypeJavaAnnotation.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ExtensionAlias.kt")
|
||||
public void testExtensionAlias() throws Exception {
|
||||
|
||||
+6
@@ -18379,6 +18379,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
|
||||
runTest("compiler/testData/codegen/box/fir/emptyIntersectionWarning.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("enumEntryInTypeJavaAnnotation.kt")
|
||||
public void testEnumEntryInTypeJavaAnnotation() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/enumEntryInTypeJavaAnnotation.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ExtensionAlias.kt")
|
||||
public void testExtensionAlias() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user