struct foo {} foo foo;
Error: variable foo conflicts with struct foo
Stijn via Digitalmars-d-learn Thu, 04 Jan 2018 09:50:42 -0800
Why is it not allowed for a variable name to match a type name?
The following example fails with "Error: variable foo conflicts
with struct foo"
- Error: variable foo conflicts with str... Stijn via Digitalmars-d-learn
- Re: Error: variable foo conflicts... Colin via Digitalmars-d-learn
- Re: Error: variable foo confl... Stijn via Digitalmars-d-learn
- Re: Error: variable foo conflicts... Paul Backus via Digitalmars-d-learn