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
Given a protected[this] method and a subtype overriding its declaration to make access public, the widening of access isn't applied to the specialized declarations.
Error:(13, 33) method hasK$mcI$sp in trait MoreOpen cannot be accessed in MoreOpen
Access to protected method hasK$mcI$sp not permitted because
enclosing object Playground is not a subclass of
trait MoreOpen where target is defined
def check(guy :MoreOpen) = guy.hasK(42)
BTW - I know the specialization is an experimental and not fullly integrated feature of the language. Should I keep reporting bugs I find in this area, or is it just burdening you with stuff that's likely to go out of the window and be rewritten completely?
The text was updated successfully, but these errors were encountered:
@SethTisue said:
The bug reports are valuable as documentation for future wanderers in the hallways of JIRA. But yeah, I'm going to tag this as "community" which means unless a volunteer appears, it's unlikely to get fixed.
Marcin Mościcki (mmoscicki) said:
Ok, thx.
Never worked on a compiler before, but if you suspect it's something really easy and could point me in the right direction, and there is some general intro for contributors, maybe I could give it a try?
som-snytt
changed the title
Overriden methods with wider access don't have it applied in specialized versions
Overridden methods with wider access don't have it applied in specialized versions
Nov 7, 2021
Given a
protected[this]
method and a subtype overriding its declaration to make access public, the widening of access isn't applied to the specialized declarations.BTW - I know the specialization is an experimental and not fullly integrated feature of the language. Should I keep reporting bugs I find in this area, or is it just burdening you with stuff that's likely to go out of the window and be rewritten completely?
The text was updated successfully, but these errors were encountered: