www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21920] New: [REG master] Error: `auto` can only be used as

https://issues.dlang.org/show_bug.cgi?id=21920

          Issue ID: 21920
           Summary: [REG master] Error: `auto` can only be used as part of
                    `auto ref` for template function parameters
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: ibuclaw gdcproject.org

import std.stdio;
void function(string) printer = &writeln!string;

---

Caused by https://github.com/dlang/phobos/pull/8055

--
May 14