mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
15 lines
297 B
D
15 lines
297 B
D
// 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;
|
|
}
|