Description
It is currently not possible to implement a trait by using anonymous classes:
trait Foo { def foo() { 42 } } new Foo() {} // compiler complains
The compiler message is:
You are not allowed to extend the interface 'Foo', use implements instead
This is not consistent with interfaces and abstract classes:
interface Foo { def foo() } new Foo() { def foo() { 42 } } // this works
It would be nice, for consistency reasons if no other, if traits could be extended to support this feature.