Closed
Description
Compiler version
3.3.1
Minimized code
object Foo extends AnyVal
Output
1 |object Foo extends AnyVal
|^^^^^^^^^^^^^^^^^^^^^^^^^
|Foo is already defined as object Foo
Expectation
Better error message
1 |object Foo extends AnyVal
|^^^^^^^^^^^^^^^^^^^^^^^^^
|object Foo cannot extend class AnyVal