dmd/compiler/test/fail_compilation/test17908b.d
2022-07-09 18:53:07 +02:00

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);
}