mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
15 lines
241 B
D
15 lines
241 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/test17908a.d(10): Error: function `test17908a.foo` cannot be used because it is annotated with `@disable`
|
|
---
|
|
*/
|
|
|
|
@disable void foo();
|
|
@disable void foo(int) {}
|
|
alias g = foo;
|
|
|
|
void main()
|
|
{
|
|
g(10);
|
|
}
|