On 5/23/2013 12:24 AM, Jacob Carlborg wrote:
Is the message clear in the context of the code it flagged?
The complete error message (move outside of DWT) :
main.d(8): Error: function main.Foo.static_this without 'this' cannot be shared
Yes, I think it's clear enough. It could be a bit more precise, like saying: "
static method main.Foo.static_this cannot be shared". Do we have a matching
bugzilla report for this?
Yes, but I don't know which one. The issue is attempting to declare:
shared int foo() { ... }
where shared would apply to the 'this' reference, but there is no 'this'
reference. This was an "accepts invalid code" bug in the compiler.
_______________________________________________
dmd-beta mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/dmd-beta