Debian Codegraph @

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

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail19687.d(17): Error: no property `nonexisting` for `""` of type `string`
5 ---
6 */
7
8 struct S
9 {
10 void opDispatch(string name)() {}
11 void opDispatch(string name)(string value) {}
12 }
13
14 void main()
15 {
16 S n;
17 n.foo = "".nonexisting();
18 }