mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
10 lines
165 B
D
10 lines
165 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail7369.d(9): Error: cannot modify `this.a` in `const` function
|
|
---
|
|
*/
|
|
struct S7369 {
|
|
int a;
|
|
invariant() { a += 5; }
|
|
}
|