mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00

Without this limitation, the code could incorrectly concatenate `["c"] ~ "a" ~ "b"` as `["c"] ~ "ab"`, which was incorrect. Signed-off-by: Teodor Dutu <teodor.dutu@gmail.com>
6 lines
116 B
D
6 lines
116 B
D
//https://issues.dlang.org/show_bug.cgi?id=24078
|
|
|
|
void main()
|
|
{
|
|
assert(["c"] ~ "a" ~ "b" == ["c", "a", "b"]);
|
|
}
|