mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
13 lines
272 B
D
13 lines
272 B
D
// https://issues.dlang.org/show_bug.cgi?id=20744
|
|
|
|
struct A {
|
|
struct S {}
|
|
void f(@S int = 3);
|
|
alias fun = Issue20744!f;
|
|
}
|
|
|
|
template Issue20744(func...) {
|
|
static if (is(typeof(func[0]) PT == __parameters)) {
|
|
alias Issue20744 = (PT args) {};
|
|
}
|
|
}
|