[Issue 1456] Cannot use a constant with alias template parameters
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Sep 13 07:26:20 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1456
------- Comment #2 from samukha at voliacable.com 2007-09-13 09:26 -------
But in the first example the global name i and not 20 is aliased. It is
according to the specs. If it's not a bug, I would expect the following not to
work either:
const int i = 20;
alias i j; // Should fail with an error like "cannot alias 20 to j"?
--
More information about the Digitalmars-d-bugs
mailing list