[Issue 24261] New: Cannot define calling convention of a function prototype in a function scope
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Fri Nov 24 21:23:41 UTC 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 at puremagic.com
          Reporter: b2.temp at 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.
--
    
    
More information about the Digitalmars-d-bugs
mailing list