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?

--
/Jacob Carlborg