mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
10 lines
230 B
D
10 lines
230 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail9773.d(7): Error: cannot create default argument for `ref` / `out` parameter from expression `""` because it is not an lvalue
|
|
---
|
|
*/
|
|
void f(ref string a = "")
|
|
{
|
|
a = "crash and burn";
|
|
}
|