Try this:
final class Foo
{
bool opEquals(const Object) const {return true;}
}
void main(){}
Then this:
class Foo
{
bool opEquals(const Object) const {return true;}
}
void main(){}
In the first case the hijacking is detected. in the second, everything compiles finely. This is why jenkins test failed here: https://github.com/dlang/dmd/pull/6731#issuecomment-297327652
Comment #1 by b2.temp — 2017-04-26T19:42:56Z
No it's not detected in the first (final class) and detected in the second