www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20780] New: Function parameter UDA are not accepted in nested

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

          Issue ID: 20780
           Summary: Function parameter UDA are not accepted in nested
                    function declarations
           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

See  https://forum.dlang.org/thread/gbxpopfbibdmuxffyxzw forum.dlang.org

test case

---
void main()
{
    struct  A;
    struct  B;
    alias   V = void;
    alias   I = int;
    V    test0( A I)        {}
    V    test1( A  (B) I)   {}
    V    test2( A  B I)     {}
}
---

--
Apr 28