Debian Codegraph @

gcc/testsuite/gdc.test/fail_compilation/fail11445.d

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail11445.d(11): Error: illegal operator `+` for `a` of type `double[string]`
5 ---
6 */
7
8 void main() {
9 double[string] a = [ "foo" : 22.2 ];
10 double[string] b = [ "bar" : 22.2 ];
11 auto c = a + b;
12 }