File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
compiler/src/dotty/tools/dotc/core/tasty Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -424,7 +424,11 @@ class TreeUnpickler(reader: TastyReader,
424424 flags = flags | (if (tag == VALDEF ) ModuleValCreationFlags else ModuleClassCreationFlags )
425425 if (ctx.owner.isClass) {
426426 if (tag == TYPEPARAM ) flags |= Param
427- else if (tag == PARAM ) flags |= ParamAccessor
427+ else if (tag == PARAM ) {
428+ flags |= ParamAccessor
429+ if (! rhsIsEmpty) // param alias
430+ flags |= Method
431+ }
428432 }
429433 else if (isParamTag(tag)) flags |= Param
430434 flags
@@ -775,7 +779,6 @@ class TreeUnpickler(reader: TastyReader,
775779 ValDef (tpt)
776780 }
777781 else {
778- sym.setFlag(Method )
779782 sym.info = ExprType (tpt.tpe)
780783 pickling.println(i " reading param alias $name -> $currentAddr" )
781784 DefDef (Nil , Nil , tpt)
You can’t perform that action at this time.
0 commit comments