March 01, 2021 [Issue 21671] New: Position of the `default` label in switch statement affects warnings | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=21671 Issue ID: 21671 Summary: Position of the `default` label in switch statement affects warnings Product: D Version: D2 Hardware: x86 OS: Windows Status: NEW Severity: enhancement Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: andrei@erdani.com Per https://github.com/s-ludwig/taggedalgebraic/pull/65, changing the position of `default` in a switch with no fallthrough affects eliminates a warning. That shouldn't be the case because the code is semantically equivalent regardless of the placement of the label. -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply