[Issue 17908] New: Can't alias an overload set with disabled function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Oct 17 12:20:12 UTC 2017


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

          Issue ID: 17908
           Summary: Can't alias an overload set with disabled function
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: dfj1esp02 at sneakemail.com

@disable void f();
void f(int){}
alias g=f;
void h(){ g(0); }

Error: function f is not callable because it is annotated with @disable

--


More information about the Digitalmars-d-bugs mailing list