Skip to content

Commit df97004

Browse files
committed
Add checkfile
1 parent 269b350 commit df97004

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
J:
2+
List(Apply(Select(New(Ident(SuppressWarnings)),<init>),List(NamedArg(value,JavaSeqLiteral(List(Literal(Constant(a))), TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class lang)),class String)])))))
3+
List(Apply(Select(New(Ident(SuppressWarnings)),<init>),List(NamedArg(value,JavaSeqLiteral(List(Literal(Constant(b))), TypeTree[TypeRef(ThisType(TypeRef(NoPrefix,module class lang)),class String)])))))
4+
List(Apply(Select(New(Ident(SuppressWarnings)),<init>),List(NamedArg(value,Apply(Apply(TypeApply(Select(Select(Select(Ident(_root_),scala),Array),apply),List(TypeTree[TypeVar(TypeParamRef(T) -> TypeRef(ThisType(TypeRef(NoPrefix,module class lang)),class String))])),List(Typed(SeqLiteral(List(Literal(Constant(c)), Literal(Constant(d))),TypeTree[TypeVar(TypeParamRef(T) -> TypeRef(ThisType(TypeRef(NoPrefix,module class lang)),class String))]),TypeTree[AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class <repeated>),List(TypeVar(TypeParamRef(T) -> TypeRef(ThisType(TypeRef(NoPrefix,module class lang)),class String))))]))),List(Apply(TypeApply(Select(Ident(ClassTag),apply),List(TypeTree[TypeVar(TypeParamRef(T) -> TypeRef(ThisType(TypeRef(NoPrefix,module class lang)),class String))])),List(Literal(Constant(TypeRef(ThisType(TypeRef(NoPrefix,module class lang)),class String)))))))))))

tests/run/fix-annot-arg-value-in-java/AnnoMacro.scala renamed to tests/run/annot-arg-value-in-java/AnnoMacro.scala

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,4 @@ inline def annots(inline c: String): List[String] = ${ annotsImpl('c) }
44

55
def annotsImpl(c: Expr[String])(using Quotes): Expr[List[String]] =
66
import quotes.reflect.*
7-
// println(c.valueOrError)
8-
val a = Symbol.requiredClass(c.valueOrError).declaredMethods.map(_.annotations.toString)
9-
// println(a)
10-
Expr(a)
7+
Expr(Symbol.requiredClass(c.valueOrError).declaredMethods.map(_.annotations.toString))
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@main def Test =
2+
inline val c = "J"
3+
println(c + ":")
4+
annots(c).foreach(println)

tests/run/fix-annot-arg-value-in-java/S.scala

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)