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 16ce7e4 commit 9ff0223Copy full SHA for 9ff0223
compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala
@@ -424,7 +424,11 @@ class TreeUnpickler(reader: TastyReader,
424
flags = flags | (if (tag == VALDEF) ModuleValCreationFlags else ModuleClassCreationFlags)
425
if (ctx.owner.isClass) {
426
if (tag == TYPEPARAM) flags |= Param
427
- else if (tag == PARAM) flags |= ParamAccessor
+ else if (tag == PARAM) {
428
+ flags |= ParamAccessor
429
+ if (!rhsIsEmpty) // param alias
430
+ flags |= Method
431
+ }
432
}
433
else if (isParamTag(tag)) flags |= Param
434
flags
@@ -775,7 +779,6 @@ class TreeUnpickler(reader: TastyReader,
775
779
ValDef(tpt)
776
780
777
781
else {
778
- sym.setFlag(Method)
782
sym.info = ExprType(tpt.tpe)
783
pickling.println(i"reading param alias $name -> $currentAddr")
784
DefDef(Nil, Nil, tpt)
0 commit comments