Skip to content
This repository has been archived by the owner on Apr 3, 2018. It is now read-only.

Class invariants without parentheses are not supported #144

Closed
linkrope opened this issue Jun 27, 2016 · 0 comments
Closed

Class invariants without parentheses are not supported #144

linkrope opened this issue Jun 27, 2016 · 0 comments

Comments

@linkrope
Copy link

See http://dlang.org/spec/class.html#invariants

The alternative used in the Language Reference

invariant
{
    assert(1 <= day && day <= 31);
    assert(0 <= hour && hour < 24);
}

is not supported:

Syntax error on token "invariant", expected OPEN_PARENS after.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant