[Issue 18949] Array literals don't work with betterc

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Dec 27 12:00:55 UTC 2022


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

Nick Treleaven <nick at geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |nick at geany.org
         Resolution|---                         |FIXED

--- Comment #2 from Nick Treleaven <nick at geany.org> ---
`array` needs to be `in` or `scope`. The error message has been improved:

arrlit.d(6): Error: expression `[1, 2, 3]` uses the GC and cannot be used with
switch `-betterC`

--


More information about the Digitalmars-d-bugs mailing list