Is this a bug, or is my understanding of shared/synchronized still broken: module test;
synchronized class Bob {
private:
int _i;
invariant() { // test.d(7): Error: function test.Bob.__invariant () shared
is not callable using argument types ()
assert(_i == 5);
}
public:
this() {
_i = 5;
}
@property
int i() {
return _i;
}
}
