[Issue 23968] New: Deprecation not emitted with alias to template function in UFCS

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 5 07:20:02 UTC 2023


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

          Issue ID: 23968
           Summary: Deprecation not emitted with alias to template
                    function in UFCS
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P3
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: dlang-bugzilla at thecybershadow.net

///////////////// test.d ////////////////
int fun()(int)
{
    return 0;
}

deprecated alias a = fun;

unittest
{
    int v;
//  int x = a!()(v); // OK, deprecation
    int y = v.a!();  // No deprecation?
}
/////////////////////////////////////////

--


More information about the Digitalmars-d-bugs mailing list