[Issue 5038] Allow declaring class invariant without parentheses
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri May 18 10:13:35 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=5038
Dmitry Olshansky <dmitry.olsh at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
CC| |dmitry.olsh at gmail.com
Resolution|--- |WORKSFORME
--- Comment #8 from Dmitry Olshansky <dmitry.olsh at gmail.com> ---
This compiles today on DMD v2.079.1:
class C {
int height;
int width;
invariant {
assert( height < 10 );
assert( width < 11 );
}
}
--
More information about the Digitalmars-d-bugs
mailing list