You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
deftypedRefinement(templ: Template) {
valstats= templ.body
namer.enterSyms(stats)
// need to delay rest of typedRefinement to avoid cyclic reference errors
unit.toCheck += { () =>valstats1= typedStats(stats, NoSymbol)
// this code kicks in only after typer, so `stats` will never be filled in time// as a result, most of compound type trees with non-empty stats will fail to reify// todo. investigate whether something can be done about thisvalatt= templ.attachments.get[CompoundTypeTreeOriginalAttachment].getOrElse(CompoundTypeTreeOriginalAttachment(Nil, Nil))
templ.removeAttachment[CompoundTypeTreeOriginalAttachment]
templ updateAttachment att.copy(stats = stats1)
for (stat <- stats1 if stat.isDef) {
valmember= stat.symbol
if (!(context.owner.ancestors forall
(bc => member.matchingSymbol(bc, context.owner.thisType) ==NoSymbol))) {
member setFlag OVERRIDE
}
}
}
}
The following (invalid) code goes quiet during typer and won't be heard from again until it has exhausted available memory.
The text was updated successfully, but these errors were encountered: