Given the following trait:
trait Foo {
final val wait = "wait"
}
on compilation it emits the following override compiler error:
Value 'wait' cannot override final member
Declaring a variable inside a trait as above seems to clash with the following Java method in the Object
class:
public final void wait() throws InterruptedException {
this.wait(0L);
}
Is this a bug or desired behaviour?