https://issues.dlang.org/show_bug.cgi?id=16020
Issue ID: 16020
Summary: AliasDeclarationY doesn't allow to alias a function
type
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
std.typecons contains a load of C-ish alias declarations in the unittests.
The problem here is the new syntax that doesn't allow to declare the equivalent
without typing a silly declaration:
for example in typecons:
alias int F1();
the only way to get the same type alias using the most modern syntax is
import std.traits;
alias F1 = PointerTarget!(int function());
and
alias F1 = int();
is not allowed at all.
There's a **gap** because now we can't say "let's drop the old alias syntax
completly".
--