Thread overview
[Issue 22679] "Error: identifier expected following `package'" when module has 'debug' in it's name
January 16, 2022
https://issues.dlang.org/show_bug.cgi?id=22679

dlang@jarmuszz.anonaddy.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dlang@jarmuszz.anonaddy.com

--
January 16, 2022
https://issues.dlang.org/show_bug.cgi?id=22679

moonlightsentinel@disroot.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |moonlightsentinel@disroot.o
                   |                            |rg
         Resolution|---                         |INVALID

--- Comment #1 from moonlightsentinel@disroot.org ---
See https://dlang.org/spec/module.html#module_declaration

> Package and module names cannot be Keywords.

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

--- Comment #2 from dlang@jarmuszz.anonaddy.com ---
(In reply to moonlightsentinel from comment #1)
> See https://dlang.org/spec/module.html#module_declaration
> 
> > Package and module names cannot be Keywords.

Thank you for reply, I missed this one point in the spec.

If this is an intended behavior, I think the error message should be changed as it is misleading and could cause a lot of unneeded hair-pulling.

Sincerely,
Mariusz Jakoniuk (jarmuszz)

--