Closed
Description
This doesn't compile:
enum class Ducks
object Ducks {
case Dewey
def wooohoo: Int = 1
}
-- [E039] Syntax Error: enumo.scala:6:6 ------------------------------------
6 | def woohoo: Int = 1
| ^^^^^^
| ';' expected, but identifier found
This can be worked around by writing case Dewey;
or case Dewey extends Ducks
.