mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
14 lines
264 B
D
14 lines
264 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail20658.d(14): Error: modifying field `U.m` which overlaps with fields with other storage classes is not allowed in a `@safe` function
|
|
---
|
|
*/
|
|
|
|
union U
|
|
{
|
|
int m;
|
|
immutable int i;
|
|
}
|
|
U u;
|
|
enum e = () @safe { u.m = 13; };
|