Another Shared Bug?

Andrew Wiley wiley.andrew.j at gmail.com
Mon Oct 24 15:34:57 PDT 2011


My understanding is that this:
--------
module test2;

synchronized abstract class Bob {
private:
int _i = 2;
 public:
@property
int i() {
return _i;
 }
}

synchronized class Bill : Bob {
public:
@property
 int thing() {
return i;
}
}
--------
should be the same as this:
--------
module test2;

synchronized abstract class Bob {
private:
int _i = 2;
 public:
@property
int i() {
 return _i;
}
}

synchronized class Bill : Bob {
public:
@property
int thing() {
return super.i(); //test2.d(18): Error: function test2.Bob.i () shared is
not callable using argument types ()
 }
}
--------
But the second one gets a compiler error. Bug?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20111024/5e219abe/attachment.html>


More information about the Digitalmars-d mailing list