File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -495,6 +495,7 @@ extension (sym: Symbol)
495495 */
496496 def isUseParam (using Context ): Boolean =
497497 sym.hasAnnotation(defn.UseAnnot )
498+ || sym.info.hasAnnotation(defn.UseAnnot )
498499 || sym.is(TypeParam )
499500 && sym.owner.rawParamss.nestedExists: param =>
500501 param.is(TermParam ) && param.hasAnnotation(defn.UseAnnot )
Original file line number Diff line number Diff line change @@ -4234,6 +4234,8 @@ object Types extends TypeUtils {
42344234 paramType = addAnnotation(paramType, defn.InlineParamAnnot , param)
42354235 if param.is(Erased ) then
42364236 paramType = addAnnotation(paramType, defn.ErasedParamAnnot , param)
4237+ if param.isUseParam then
4238+ paramType = addAnnotation(paramType, defn.UseAnnot , param)
42374239 paramType
42384240
42394241 def adaptParamInfo (param : Symbol )(using Context ): Type =
You can’t perform that action at this time.
0 commit comments