| 1 |
/* |
| 2 |
REQUIRED_ARGS: -o- |
| 3 |
TEST_OUTPUT: |
| 4 |
---- |
| 5 |
$p:druntime/import/core/internal/array/operations.d$($n$): Error: static assert: "Binary op `+=` not supported for types `string` and `string`." |
| 6 |
$p:druntime/import/core/internal/array/operations.d$($n$): instantiated from here: `typeCheck!(true, string, string, "+=")` |
| 7 |
$p:druntime/import/object.d$($n$): instantiated from here: `arrayOp!(string[], string[], "+=")` |
| 8 |
fail_compilation/fail_arrayop3b.d(15): instantiated from here: `_arrayOp!(string[], string[], "+=")` |
| 9 |
--- |
| 10 |
*/ |
| 11 |
void test11376() |
| 12 |
{ |
| 13 |
string[] s1; |
| 14 |
string[] s2; |
| 15 |
s2[] += s1[]; |
| 16 |
} |