By chance I came across weird compiling Scala syntax:
class Some extends { def hi = println(\"hi\") } >
class Some extends { def hi = println(\"hi\") }
This is actually just a syntactical accident (I think). Scala allows early definitions which look like
class Some extends { ... } with ATrait
so the parser also accepts class Some extends { ... } which is equivalent to class Some { ... } (source).
class Some extends { ... }
class Some { ... }