D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 22945 - [Conditional Compilation] support invariant version flag
Summary: [Conditional Compilation] support invariant version flag
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86_64 Linux
: P1 enhancement
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2022-03-27 11:40 UTC by João Lourenço
Modified: 2022-03-28 00:45 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 João Lourenço 2022-03-27 11:40:18 UTC
This is a follow-up from https://issues.dlang.org/show_bug.cgi?id=22278. An existent Phobos unit test that can benefit from this is: https://github.com/dlang/phobos/blob/12b78bdebfe5ba55f3717f5ae1a5c81be8bac337/std/sumtype.d#L1275-L1290
Comment 1 Dlang Bot 2022-03-27 11:49:16 UTC
@iK4tsu created dlang/dmd pull request #13896 "Fix Issue 22945 - [Conditional Compilation] support invariant version flag" fixing this issue:

- test(runnable): add runnable tests for version condition D_Invariant
  
  FIX ISSUE 22945
  
  Signed-off-by: João Lourenço <jlourenco5691@gmail.com>

https://github.com/dlang/dmd/pull/13896
Comment 2 Dlang Bot 2022-03-28 00:45:19 UTC
dlang/dmd pull request #13896 "Fix Issue 22945 - [Conditional Compilation] support invariant version flag" was merged into master:

- e61b33c54147046461afb35cf619b7bc44371b8a by João Lourenço:
  test(runnable): add runnable tests for version condition D_Invariant
  
  FIX ISSUE 22945
  
  Signed-off-by: João Lourenço <jlourenco5691@gmail.com>

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