February 13, 2019 [Issue 19674] New: multiple local template function with same name don't work | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=19674 Issue ID: 19674 Summary: multiple local template function with same name don't work Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: alex@sunopti.com import std.stdio; void main() { { auto a = new int[0]; void add(T)(T x) { a ~= x; } add(3); writefln("%s",a); //should be [3] and is } { auto a = new int[0]; void add(T)(T x) { a ~= x; } add(3); writefln("%s",a); //should be [3] but isn't } } -- |
Copyright © 1999-2021 by the D Language Foundation