mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
13 lines
251 B
D
13 lines
251 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail106.d(12): Error: cannot modify `immutable` expression `"ABC"[2]`
|
|
---
|
|
*/
|
|
|
|
// https://issues.dlang.org/show_bug.cgi?id=239
|
|
// Internal error: changing string literal elements
|
|
void main()
|
|
{
|
|
"ABC"[2] = 's';
|
|
}
|