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.
1 parent 4b6e15c commit 579dd1dCopy full SHA for 579dd1d
compiler/src/dotty/tools/dotc/typer/Applications.scala
@@ -575,8 +575,11 @@ trait Applications extends Compatibility { self: Typer with Dynamic =>
575
576
def normalizedFun = myNormalizedFun
577
578
+ private def isJavaAnnotConstr(sym: Symbol) =
579
+ sym.is(JavaDefined) && sym.isConstructor && sym.owner.derivesFrom(defn.AnnotationClass)
580
+
581
override def liftFun(): Unit =
- if (liftedDefs == null) {
582
+ if (liftedDefs == null && !isJavaAnnotConstr(methRef.symbol)) {
583
liftedDefs = new mutable.ListBuffer[Tree]
584
myNormalizedFun = liftApp(liftedDefs, myNormalizedFun)
585
}
0 commit comments