aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/fail_compilation/ice10283.d
blob: 489c45efe6696b7a4ff8991a975643c5fd9c7fb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// https://issues.dlang.org/show_bug.cgi?id=10283
/*
TEST_OUTPUT:
---
fail_compilation/ice10283.d(14): Error: cannot implicitly convert expression `7` of type `int` to `string`
---
*/

S10283 blah(S10283 xxx) { return xxx; }
S10283 repy = blah(S10283());

struct S10283
{
    string source = 7;
}