Is This a Bug
Andrew Wiley
wiley.andrew.j at gmail.com
Mon Oct 24 14:30:26 PDT 2011
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;
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20111024/697d4c72/attachment.html>
More information about the Digitalmars-d
mailing list