| 1 |
/* |
| 2 |
REQUIRED_ARGS: -o- |
| 3 |
TEST_OUTPUT: |
| 4 |
---- |
| 5 |
$p:druntime/import/core/internal/array/operations.d$($n$): Error: static assert: "Binary `*` not supported for types `X` and `X`." |
| 6 |
$p:druntime/import/core/internal/array/operations.d$($n$): instantiated from here: `typeCheck!(true, X, X, X, "*", "=")` |
| 7 |
$p:druntime/import/object.d$($n$): instantiated from here: `arrayOp!(X[], X[], X[], "*", "=")` |
| 8 |
fail_compilation/fail_arrayop3a.d(19): instantiated from here: `_arrayOp!(X[], X[], X[], "*", "=")` |
| 9 |
---- |
| 10 |
*/ |
| 11 |
|
| 12 |
void test11376() |
| 13 |
{ |
| 14 |
struct X { } |
| 15 |
|
| 16 |
auto x1 = [X()]; |
| 17 |
auto x2 = [X()]; |
| 18 |
auto x3 = [X()]; |
| 19 |
x1[] = x2[] * x3[]; |
| 20 |
|
| 21 |
string[] s1; |
| 22 |
string[] s2; |
| 23 |
s2[] += s1[]; |
| 24 |
|
| 25 |
int*[] pa1; |
| 26 |
int*[] pa2; |
| 27 |
pa1[] *= pa2[]; |
| 28 |
} |