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
error.scala:5:error: classB needs to be abstract, since variable x in classA of typeInt is not defined
(Note that variables need to be initialized to be defined)
classBextendsA {
^
It wuold be more obvious if this produced the same error as overriding a concrete var with a val, e.g.
@paulp said:
(In r22481) When compilation fails because of an unimplemented abstract var,
give a more precise error message about what happened. Also avoid
issuing the same error twice because neither getter nor setter is
implemented. Closes #36, review by rytz.
The error message produced when you override an abstract var with a val is unclear,
For example:
produces the error:
It wuold be more obvious if this produced the same error as overriding a concrete var with a val, e.g.
with the error message:
The text was updated successfully, but these errors were encountered: