[Issue 24206] New: Can't alias a function type that returns a type with a TypeSuffix

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Oct 29 11:29:50 UTC 2023


https://issues.dlang.org/show_bug.cgi?id=24206

          Issue ID: 24206
           Summary: Can't alias a function type that returns a type with a
                    TypeSuffix
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: nick at geany.org

alias F = int*();

Error: function declaration without return type. (Note that constructors are
always named `this`)

The grammar for AliasAssignment has BasicType Parameters, and should have
TypeSuffixes in between:
file:///home/nick/git/dlang.org/spec/declaration.html#alias

--


More information about the Digitalmars-d-bugs mailing list