[Issue 24513] `pure` can be used as `auto`

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 19 17:41:04 UTC 2024


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

Dennis <dkorpel at live.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |dkorpel at live.nl
           Hardware|x86_64                      |All
         Resolution|---                         |INVALID
                 OS|Linux                       |All

--- Comment #1 from Dennis <dkorpel at live.nl> ---
This is defined behavior:

https://dlang.org/spec/function.html#auto-functions

> An auto function is declared without a return type. Auto functions can use any valid StorageClass, not just auto.

--


More information about the Digitalmars-d-bugs mailing list