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
@paulp said:
Here's a little comment I've had in the compiler source a long time. The OVERRIDE flag (which is what isOverride checks) only reliably corresponds to the word "override" appearing in source.
// !!! When if ever will this answer differ from .isOverride?// How/where is the OVERRIDE flag managed, as compared to how checks// based on type membership will evaluate?defisOverridingSymbol= owner.isClass && (
owner.ancestors exists (cls => matchingSymbol(cls, owner.thisType) !=NoSymbol)
)
It seems that Symbol.isOverride is not working properly if the override modifier is not set explicitly.
The last instruction is returning false, despite of being overridding the a attribute.
The text was updated successfully, but these errors were encountered: