link error for 2+ static this()

Walter Bright newshound at digitalmars.com
Wed Jun 7 02:13:36 PDT 2006


BCS wrote:
> this gives a link error with somthing about duplicate symbols.
> 
> <code>
> void main(){}
> static this(){}
> static this(){}
> <\code>

That's because there are two static constructors, which is not legal.



More information about the Digitalmars-d-bugs mailing list