mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
23 lines
311 B
D
23 lines
311 B
D
// https://issues.dlang.org/show_bug.cgi?id=23968
|
|
|
|
// REQUIRED_ARGS: -de
|
|
|
|
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/test23968.d(22): Deprecation: alias `test23968.a` is deprecated
|
|
---
|
|
*/
|
|
|
|
int fun()(int)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
deprecated alias a = fun;
|
|
|
|
void main()
|
|
{
|
|
int v;
|
|
int y = v.a!(); // No deprecation?
|
|
}
|