mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
15 lines
427 B
D
15 lines
427 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/diag19225.d(14): Error: basic type expected, not `else`
|
|
fail_compilation/diag19225.d(14): There's no `static else`, use `else` instead.
|
|
fail_compilation/diag19225.d(14): Error: found `else` without a corresponding `if`, `version` or `debug` statement
|
|
fail_compilation/diag19225.d(15): Error: unmatched closing brace
|
|
---
|
|
*/
|
|
|
|
void main()
|
|
{
|
|
static if (true) {}
|
|
static else {}
|
|
}
|