digitalmars.D - Is This a Bug
- Andrew Wiley (18/18) Oct 24 2011 Is this a bug, or is my understanding of shared/synchronized still broke...
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;
}
}
Oct 24 2011








Andrew Wiley <wiley.andrew.j gmail.com>