D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 20419 - is(missing == module/package) results in unknown identifier
Summary: is(missing == module/package) results in unknown identifier
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 normal
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2019-11-26 21:20 UTC by moonlightsentinel
Modified: 2021-04-03 01:03 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description moonlightsentinel 2019-11-26 21:20:56 UTC
is(stuff == module) and is(stuff == package) raise an error if "stuff" is an unknown symbol. All other non-type checks (e.g. stuff == class) simply evaluate to false because the spec only requires "stuff" to be syntactically valid.
Comment 1 Dlang Bot 2019-11-26 21:34:54 UTC
@MoonlightSentinel created dlang/dmd pull request #10621 "Fix Issue 20419 - is(missing == module/package) results in unknown id…" fixing this issue:

- Fix Issue 20419 - is(missing == module/package) results in unknown identifier
  
  is(missing == module) and is(missing == package) raised an error for missing
  identifiers, violating the language specification wich only requires the
  identifier to be syntactically valid.

https://github.com/dlang/dmd/pull/10621
Comment 2 Dlang Bot 2019-11-27 01:04:21 UTC
dlang/dmd pull request #10621 "Fix Issue 20419 - is(missing == module/package) results in unknown id…" was merged into master:

- 09037a8641f942b6248f503b48c1a1c382159412 by MoonlightSentinel:
  Fix Issue 20419 - is(missing == module/package) results in unknown identifier
  
  is(missing == module) and is(missing == package) raised an error for missing
  identifiers, violating the language specification wich only requires the
  identifier to be syntactically valid.

https://github.com/dlang/dmd/pull/10621
Comment 3 Dlang Bot 2021-04-03 01:03:41 UTC
dlang/dmd pull request #12350 "[dmd-cxx] More fixes for package import visibility" was merged into dmd-cxx:

- f155716b9c8091bf4ccf73473dd0f1219a9bf16d by MoonlightSentinel:
  [dmd-cxx] Fix Issue 20419 - is(missing == module/package) results in unknown identifier

https://github.com/dlang/dmd/pull/12350