blob: 8d867214834ac4789fb1c1f07b28f1c18450d605 [file] [log] [blame]
// REQUIRED_ARGS: -de
struct S
{
deprecated void foo(T)(int) { }
void foo(T)(string) { }
}
// just to be safe, check this order too
// (there were some issues where naive checks of overloads were order dependent)
struct T
{
void foo(T)(string) { }
deprecated void foo(T)(int) { }
}
void main()
{
// this should not hit the deprecation
// because the parameter type doesn't match it
S().foo!int("hi");
// likewise
T().foo!int("hi");
}