]>
Commit | Line | Data |
---|---|---|
b4c522fa | 1 | // REQUIRED_ARGS: -w |
7da827c9 IB |
2 | // https://issues.dlang.org/show_bug.cgi?id=4375: Dangling else |
3 | /* | |
4 | TEST_OUTPUT: | |
5 | --- | |
6 | fail_compilation/fail4375w.d(13): Warning: else is dangling, add { } after condition at fail_compilation/fail4375w.d(11) | |
7 | --- | |
8 | */ | |
b4c522fa IB |
9 | |
10 | static if (true) | |
11 | version (B) | |
12 | struct G1 {} | |
13 | else | |
14 | struct G2 {} | |
15 |