File tree 2 files changed +5
-2
lines changed
compiler/src/dotty/tools/dotc
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -350,7 +350,6 @@ object SymDenotations {
350
350
351
351
ensureCompleted()
352
352
if rawParamss.isEmpty then recurWithoutParamss(info)
353
- else if symbol.hasAnnotation(defn.MappedAlternativeAnnot ) then recurWithParamss(info.stripPoly, rawParamss)
354
353
else recurWithParamss(info, rawParamss)
355
354
end paramSymss
356
355
Original file line number Diff line number Diff line change @@ -645,7 +645,11 @@ trait Applications extends Compatibility {
645
645
version.map(v => s " (since $v) " ).getOrElse(" " )
646
646
647
647
val deprecatedNames : Map [Name , Annotation ] =
648
- methRef.symbol.paramSymss.find(_.exists(_.isTerm)) match
648
+ val sym = methRef.symbol
649
+ val paramss =
650
+ if sym.hasAnnotation(defn.MappedAlternativeAnnot ) then sym.rawParamss
651
+ else sym.paramSymss
652
+ paramss.find(_.exists(_.isTerm)) match
649
653
case Some (ps) if ps.exists(_.hasAnnotation(defn.DeprecatedNameAnnot )) =>
650
654
ps.flatMap: p =>
651
655
p.getAnnotation(defn.DeprecatedNameAnnot ).map(p.name -> _)
You can’t perform that action at this time.
0 commit comments