mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00

* [editions] Make `body` after contract an error * Mention --help in build.d module comment * Add ASTBase.Module.edition property, always Edition.legacy for now
11 lines
210 B
D
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 { }
|