gcc/testsuite/gdc.test/fail_compilation/ice10283.d
raw| 1 | // https://issues.dlang.org/show_bug.cgi?id=10283 |
| 2 | /* |
| 3 | TEST_OUTPUT: |
| 4 | --- |
| 5 | fail_compilation/ice10283.d(14): Error: cannot implicitly convert expression `7` of type `int` to `string` |
| 6 | --- |
| 7 | */ |
| 8 | |
| 9 | S10283 blah(S10283 xxx) { return xxx; } |
| 10 | S10283 repy = blah(S10283()); |
| 11 | |
| 12 | struct S10283 |
| 13 | { |
| 14 | string source = 7; |
| 15 | } |