We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0ea52d6 + 62eb9ee commit a898bafCopy full SHA for a898baf
compiler/src/dotty/tools/dotc/transform/sjs/JUnitBootstrappers.scala
@@ -304,7 +304,11 @@ class JUnitBootstrappers extends MiniPhase {
304
ref(param).cast(clazz.typeRef)
305
306
private def annotatedMethods(owner: ClassSymbol, annot: Symbol)(using Context): List[Symbol] =
307
- owner.info.decls.filter(m => m.is(Method) && m.hasAnnotation(annot))
+ owner.info
308
+ .membersBasedOnFlags(Method, EmptyFlags)
309
+ .filter(_.symbol.hasAnnotation(annot))
310
+ .map(_.symbol)
311
+ .toList
312
}
313
314
object JUnitBootstrappers {
0 commit comments