[Issue 22679] "Error: identifier expected following `package'" when module has 'debug' in it's name

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 17 11:41:40 UTC 2022


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

--- Comment #2 from dlang at 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)

--


More information about the Digitalmars-d-bugs mailing list