Thread overview
[Issue 12050] in does not work as storage class where const scope does
Aug 22, 2022
Kenji Hara
Dec 17, 2022
Iain Buclaw
Jun 29, 2023
RazvanN
August 22, 2022
https://issues.dlang.org/show_bug.cgi?id=12050

Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
           Severity|normal                      |minor

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |bootcamp
                 CC|                            |razvan.nitu1305@gmail.com

--- Comment #2 from Kenji Hara <k.hara.pg@gmail.com> ---
(In reply to comment #1)
> At least it should give a better error message like "only parameters can be marked with 'in'"

Marked as diagnostic issue.

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=12050

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P3

--
June 29, 2023
https://issues.dlang.org/show_bug.cgi?id=12050

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #3 from RazvanN <razvan.nitu1305@gmail.com> ---
In, according to the spec, can only be used on function parameters. Only in that context is "in" treated as const scope or just scope. Therefore, in cannot be used in all contexts `scope const` is. This bug report is invalid.

--