https://issues.dlang.org/show_bug.cgi?id=24261
Issue ID: 24261
Summary: Cannot define calling convention of a function
prototype in a function scope
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
## test case
```d
void main()
{
extern(C) alias MyType = void function();
pragma(msg, __traits(getLinkage, MyType));
}
```
## output
> Error: basic type expected, not `alias`
## notes
that works at the module scope.
--