[Issue 21832] Wrong deprecation message when importing non-deprecated template in static condition
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Apr 15 22:09:40 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=21832
Iain Buclaw <ibuclaw at gdcproject.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ibuclaw at gdcproject.org
--- Comment #1 from Iain Buclaw <ibuclaw at gdcproject.org> ---
Correction on test:
module mod;
static if(1)
{
int fun()(int a)
{
return a;
}
}
deprecated
{
double fun()(double a)
{
return a;
}
}
---
module main;
int inst(T)(T x)
{
import selective : fun; // template 'fun' is deprecated
return fun(x);
}
int main()
{
return inst(0); // instantiated from here
}
--
More information about the Digitalmars-d-bugs
mailing list