mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
11 lines
187 B
D
11 lines
187 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/failinout1.d(9): Error: cannot modify `inout` expression `x`
|
|
---
|
|
*/
|
|
inout(int) foo(inout(int) x)
|
|
{
|
|
x = 5; // cannot modify inout
|
|
return 0;
|
|
}
|