digitalmars.D.bugs - [Issue 19674] New: multiple local template function with same name
- d-bugmail puremagic.com (37/37) Feb 12 2019 https://issues.dlang.org/show_bug.cgi?id=19674
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 } } --
Feb 12 2019