mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
20 lines
224 B
D
20 lines
224 B
D
// https://issues.dlang.org/show_bug.cgi?id=1547
|
|
|
|
struct A
|
|
{
|
|
int b;
|
|
static A opCall(int k)
|
|
{
|
|
A a;
|
|
a.b = k;
|
|
return a;
|
|
}
|
|
}
|
|
|
|
void fun(A k = 2) {}
|
|
|
|
void main()
|
|
{
|
|
A a = 7;
|
|
fun();
|
|
}
|