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