FIR Java: unbind possible named annotation cycle
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
// FILE: AliasFor.java
|
||||
|
||||
public @interface AliasFor {
|
||||
@AliasFor(value = "attribute")
|
||||
String value() default "";
|
||||
|
||||
@AliasFor(value = "value")
|
||||
String attribute() default "";
|
||||
}
|
||||
|
||||
// FILE: Service.java
|
||||
public @interface Service {
|
||||
@AliasFor(value = "component")
|
||||
String value() default "";
|
||||
}
|
||||
|
||||
// FILE: Annotated.kt
|
||||
|
||||
@Service(value = "Your")
|
||||
class My
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
FILE: Annotated.kt
|
||||
@R|Service|(value = String(Your)) public final class My : R|kotlin/Any| {
|
||||
public constructor(): R|My| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
}
|
||||
Generated
+5
@@ -2079,6 +2079,11 @@ public class FirDiagnosticsTestGenerated extends AbstractFirDiagnosticsTest {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/problems/questionableSmartCast.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("recursiveNamedAnnotation.kt")
|
||||
public void testRecursiveNamedAnnotation() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/problems/recursiveNamedAnnotation.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("safeCallInvoke.kt")
|
||||
public void testSafeCallInvoke() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/problems/safeCallInvoke.kt");
|
||||
|
||||
+5
@@ -2079,6 +2079,11 @@ public class FirDiagnosticsWithLightTreeTestGenerated extends AbstractFirDiagnos
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/problems/questionableSmartCast.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("recursiveNamedAnnotation.kt")
|
||||
public void testRecursiveNamedAnnotation() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/problems/recursiveNamedAnnotation.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("safeCallInvoke.kt")
|
||||
public void testSafeCallInvoke() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/problems/safeCallInvoke.kt");
|
||||
|
||||
+5
@@ -2079,6 +2079,11 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/problems/questionableSmartCast.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("recursiveNamedAnnotation.kt")
|
||||
public void testRecursiveNamedAnnotation() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/problems/recursiveNamedAnnotation.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("safeCallInvoke.kt")
|
||||
public void testSafeCallInvoke() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/problems/safeCallInvoke.kt");
|
||||
|
||||
Reference in New Issue
Block a user