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
scala>abstractclassFunky(vali:Int) extendsAnyVal
exception when typing $this.i().hashCode()/classscala.reflect.internal.Trees$ApplyclassFunky is abstract; cannot be instantiated in file <console>
scala.reflect.internal.Types$TypeError:classFunky is abstract; cannot be instantiated
at scala.tools.nsc.typechecker.Contexts$Context.issueCommon(Contexts.scala:375)
...
ReplGlobal.abort: unrecoverable error
error: unrecoverable error
The text was updated successfully, but these errors were encountered:
scala> abstract class Funky(val i: Int) extends AnyVal
<console>:7: error: `abstract' modifier cannot be used with value classes
abstract class Funky(val i: Int) extends AnyVal
^
The text was updated successfully, but these errors were encountered: