objectTestextendsdotty.runtime.LegacyApp{classFoo{overridedefequals(that:Any)={println("Foo.equals called")super.equals(that)}}println(newFoo==newFoo)caseclassBar(x:Foo)valb=newBar(newFoo)// this should not call Foo.equals, but simply compare object identiy of bprintln(b==b)}