[Issue 15981] infer function types for auto functions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Nov 7 10:58:03 UTC 2022


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

RazvanN <razvan.nitu1305 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305 at gmail.com
         Resolution|---                         |FIXED

--- Comment #1 from RazvanN <razvan.nitu1305 at gmail.com> ---
This has been fixed:

```
auto fun() {}

pragma(msg, typeof(&fun));
```

yields:

void function() pure nothrow @nogc @safe

--


More information about the Digitalmars-d-bugs mailing list