mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00

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).
8 lines
395 B
Text
8 lines
395 B
Text
`-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.
|