dmd/compiler/test/fail_compilation/obsolete_body.d
Nick Treleaven dca92a75b7
[editions] Make body after contract an error (#16382)
* [editions] Make `body` after contract an error

* Mention --help in build.d module comment

* Add ASTBase.Module.edition property, always Edition.legacy for now
2024-04-18 10:26:20 +03:00

11 lines
210 B
D

/*
TEST_OUTPUT:
---
fail_compilation/obsolete_body.d(11): Error: usage of identifer `body` as a keyword is obsolete. Use `do` instead.
---
*/
@__edition_latest_do_not_use
module m;
void test()
in { } body { }