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,
424
424
flags = flags | (if (tag == VALDEF ) ModuleValCreationFlags else ModuleClassCreationFlags )
425
425
if (ctx.owner.isClass) {
426
426
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
+ }
428
432
}
429
433
else if (isParamTag(tag)) flags |= Param
430
434
flags
@@ -775,7 +779,6 @@ class TreeUnpickler(reader: TastyReader,
775
779
ValDef (tpt)
776
780
}
777
781
else {
778
- sym.setFlag(Method )
779
782
sym.info = ExprType (tpt.tpe)
780
783
pickling.println(i " reading param alias $name -> $currentAddr" )
781
784
DefDef (Nil , Nil , tpt)
You can’t perform that action at this time.
0 commit comments