[Issue 4167] Template overrides with alias
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Mar 18 22:52:35 PDT 2014
https://d.puremagic.com/issues/show_bug.cgi?id=4167
Infiltrator <lt.infiltrator at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |lt.infiltrator at gmail.com
--- Comment #1 from Infiltrator <lt.infiltrator at gmail.com> 2014-03-18 22:51:24 PDT ---
Is there any particular reason that you need to override with alias? The below
works:
template Foo(int x) {
enum int Foo = 10;
}
template Foo(int x, int y) {
enum int Foo = 10;
}
void main() {
int x1 = Foo!(1); // OK
int x2 = Foo!(2, 100); // OK
int x3 = Foo!(3, 100); // OK
}
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list