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