On 01/30/2015 03:19 PM, BBaz wrote: > It should only be an error when static opCall() cant be distinguishable > from this. > > --- > struct S > { > @disable this(); > static string opCall(){return "yo mister White";} > } > void main() > {} > --- > > is distinguishable (by return type) but cant be compiled.
I agree that this is a problem but return types are not parts of function signatures; so return types do not help "distinguish" functions. Besides, constructors don't have return types; so it is a little bit of a stretch to compare them to functions. :)
> You're right there's a problem. Thank you. Filed: https://issues.dlang.org/show_bug.cgi?id=14087 Ali