File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
tasty-query/shared/src/test/scala/tastyquery
test-sources/src/main/scala/javadefined Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -2640,6 +2640,14 @@ class TypeSuite extends UnrestrictedUnpicklingSuite {
2640
2640
ok
2641
2641
}
2642
2642
2643
+ val otherAnnotatedMethod = JavaAnnotationsClass .findNonOverloadedDecl(termName(" otherAnnotatedMethod" ))
2644
+
2645
+ checkAnnotArgs(otherAnnotatedMethod, JavaAnnotClassValueClass ) {
2646
+ case List (Literal (const)) if const.tag == Constants .ClazzTag =>
2647
+ // Note that `isRef` only accepts a `TypeRef` of the given symbol; not an `AppliedType`
2648
+ assert(clue(const.typeValue).isRef(ctx.findTopLevelClass(" java.util.List" )))
2649
+ }
2650
+
2643
2651
val annotatedParams = JavaAnnotationsClass .findNonOverloadedDecl(termName(" annotatedParams" ))
2644
2652
val List (Right (_), Left (paramSyms)) = annotatedParams.paramSymss: @ unchecked
2645
2653
Original file line number Diff line number Diff line change @@ -24,6 +24,11 @@ public int annotatedMethod() {
24
24
return 1 ;
25
25
}
26
26
27
+ @ JavaAnnotClassValue (java .util .List .class )
28
+ public int otherAnnotatedMethod () {
29
+ return 1 ;
30
+ }
31
+
27
32
public <T > int annotatedParams (
28
33
int noAnnot ,
29
34
@ JavaAnnotSingleValue (123 )
You can’t perform that action at this time.
0 commit comments