mirror of
https://github.com/dlang/dmd.git
synced 2025-04-25 20:50:41 +03:00
Enable -preview=fieldwise by default
Introduced in PR #9331, this was changed from a normal bug fix to a -preview switch because enabling it triggered a suprious "statement is not reachable" warning in Phobos. That warning has since been removed (in PR #15568).
This commit is contained in:
parent
a7f6b04a0c
commit
6a7bd45a8e
4 changed files with 12 additions and 2 deletions
8
changelog/dmd.fieldwise.dd
Normal file
8
changelog/dmd.fieldwise.dd
Normal file
|
@ -0,0 +1,8 @@
|
|||
`-preview=fieldwise` is now enabled by default
|
||||
|
||||
This fixes a bug that affected some struct comparisons using the `==` operator.
|
||||
For more information, see [the entry for `-preview=fieldwise` in the 2.085.0
|
||||
changelog](https://dlang.org/changelog/2.085.0.html#no-cmpsb).
|
||||
|
||||
The new `-revert=fieldwise` switch can be used to disable the bug fix and
|
||||
restore the original behavior of the `==` operator.
|
Loading…
Add table
Add a link
Reference in a new issue