score:1

Accepted answer

It seems you're doing

class Foo {
  class Wrapper(val underlying: Int) extends AnyVal
}

which you can't. You have to do

class Foo {
}
class Wrapper(val underlying: Int) extends AnyVal

Related Query

More Query from same tag