blob: 33c8eb2a89915b712906410093d1bb62ef170f28 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// REQUIRED_ARGS: -w
// https://issues.dlang.org/show_bug.cgi?id=4375: Dangling else
/*
TEST_OUTPUT:
---
fail_compilation/fail4375x.d(14): Warning: else is dangling, add { } after condition at fail_compilation/fail4375x.d(11)
---
*/
static if (true)
abstract:
static if (false)
class G5 {}
else
class G6 {}
|