Bug 24206 – Can't alias a function type that returns a type with a TypeSuffix

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2023-10-29T11:29:50Z
Last change time
2023-11-13T23:08:51Z
Keywords
pull
Assigned to
No Owner
Creator
Nick Treleaven

Comments

Comment #0 by nick — 2023-10-29T11:29:50Z
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
Comment #1 by dlang-bot — 2023-11-12T18:39:57Z
@ntrel created dlang/dmd pull request #15805 "Fix aliasing function type returning *Type* (allowing *TypeSuffixes*)" fixing this issue: - Fix Issue 24206 - Can't alias a function type that returns a type with a TypeSuffix Add isTypeSuffix() function. https://github.com/dlang/dmd/pull/15805
Comment #2 by dlang-bot — 2023-11-13T23:08:51Z
dlang/dmd pull request #15805 "Fix aliasing function type returning a Type with TypeSuffixes" was merged into master: - d372d1f73e9d9fefa871402fb3d412c615fffe66 by Nick Treleaven: Fix Issue 24206 - Can't alias a function type that returns a type with a TypeSuffix Add isTypeSuffix() function. https://github.com/dlang/dmd/pull/15805