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: [email protected]
Reporter: [email protected]
///////////////// 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?
}
/////////////////////////////////////////
--