[Issue 16020] AliasDeclarationY doesn't allow to alias a function type
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sun Apr 21 14:06:06 UTC 2019
    
    
  
https://issues.dlang.org/show_bug.cgi?id=16020
Dlang Bot <dlang-bot at dlang.rocks> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
--- Comment #1 from Dlang Bot <dlang-bot at dlang.rocks> ---
@Basile-z created dlang/dmd pull request #9667 "fix issue 16020 - Allow
AliasDeclarationY to express function types" fixing this issue:
- fix issue 16020 - Allow AliasDeclarationY to express function types
  The (not so) new alias declaration, using the assignment operator, is
preferred over the old C-style declarations.
  However they didn't allow to express function types, which lead to blend the
declaration styles.
  This change adds a new rule to `AliasDeclarationY` to solve the problem,
  ```diff
  AliasDeclarationY:
  +    'alias' Identifier '=' BasicType '(' Parameters ')' Attributes?
  ```
  consolidating the language consistency.
https://github.com/dlang/dmd/pull/9667
--
    
    
More information about the Digitalmars-d-bugs
mailing list