July 18, 2018 [Issue 19093] New: 'cannot alias itself' when using a template instantiation in a template parameter | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=19093 Issue ID: 19093 Summary: 'cannot alias itself' when using a template instantiation in a template parameter Product: D Version: D2 Hardware: x86 OS: Windows Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: simen.kjaras@gmail.com alias Foo(T) = T; struct Test(T, Foo!T t) {} unittest { Test!(int, 3) a; } foo.d(2): Error: alias T = T; cannot alias itself, use a qualified name to create an overload set -- |
Copyright © 1999-2021 by the D Language Foundation