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
I tried hard to find a ticket for this, as I'd be surprised not to have one already. I found related tickets #1352 and #1994, but not exactly this one.
se.scala:5:error: method clone in classObject cannot be accessed in test.WithCloneAccess to protected method clone not permitted because
prefix typetest.WithClone does not conform to
classFoo where the access take place
x.clone()
^
one error found
The text was updated successfully, but these errors were encountered:
@retronym said:
In Scala concrete members always override abstract members.
scala>classDerived { defclone:AnyRef }
<console>:7:error: overriding method clone in classDerived of type ()AnyRef;
method clone in classObject of type ()Object has weaker access privileges; it should be public;
(Note that method clone in classDerived of type ()AnyRef is abstract,
and is therefore overridden by concrete method clone in classObject of type ()Object)
classDerived { defclone:AnyRef }
^
Here's a quick attempt to use Java rules for Java defined methods:
I tried hard to find a ticket for this, as I'd be surprised not to have one already. I found related tickets #1352 and #1994, but not exactly this one.
See related IDE ticket #1000758
results in
The text was updated successfully, but these errors were encountered: