Given the following class:
class foo {
uint opImplConv() const { return 0; }
}
Any shift operator fails with an “illegal operation” error when the class is on the left side of the operator. foo >> 1
, foo << 1
, foo >>> 1
all fail but every other operator I've tried works fine.