On Thursday, 4 January 2018 at 17:45:35 UTC, Stijn wrote:
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"struct foo {} foo foo;
Imagine if you then tried to write something like alias bar = foo;Or, imagine you placed the above declarations into the module `mymod.d`, and then in a different module wrote
import mymod: foo; Which `foo` should these refer to, the type or the variable?