November 24, 2023
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: nobody@puremagic.com
          Reporter: b2.temp@gmx.com

## 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.

--