mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
8 lines
187 B
D
8 lines
187 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail7603c.d(8): Error: cannot create default argument for `ref` / `out` parameter from constant `3`
|
|
---
|
|
*/
|
|
enum x = 3;
|
|
void test(ref int val = x) { }
|