mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
15 lines
175 B
D
15 lines
175 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/diag8178.d(14): Error: cannot modify manifest constant `s`
|
|
---
|
|
*/
|
|
|
|
struct Foo
|
|
{
|
|
enum string s = "";
|
|
}
|
|
void main()
|
|
{
|
|
Foo.s = "";
|
|
}
|