March 25, 2021 [Issue 21765] Assignment-as-condition error with checkaction=context | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=21765 Dlang Bot <dlang-bot@dlang.rocks> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull --- Comment #1 from Dlang Bot <dlang-bot@dlang.rocks> --- @MoonlightSentinel created dlang/dmd pull request #12307 "Fix 21765 - Assignment-as-condition error with checkaction=context" fixing this issue: - Fix 21765 - Assignment-as-condition error with checkaction=context Don't eagerly check `toBoolean` if `op` is nested in another expression. This still catches `assert((a = 1))` but prevents invalid errors for assignments in `assert((a = 1) == 1)`. https://github.com/dlang/dmd/pull/12307 -- | ||||
March 25, 2021 [Issue 21765] Assignment-as-condition error with checkaction=context | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=21765 Dlang Bot <dlang-bot@dlang.rocks> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> --- dlang/dmd pull request #12307 "Fix 21765 - Assignment-as-condition error with checkaction=context" was merged into master: - 9cb19e23cf092ced72c1a56f479027abdb6748d5 by MoonlightSentinel: Fix 21765 - Assignment-as-condition error with checkaction=context Don't eagerly check `toBoolean` if `op` is nested in another expression. This still catches `assert((a = 1))` but prevents invalid errors for assignments in `assert((a = 1) == 1)`. https://github.com/dlang/dmd/pull/12307 -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply