DDT-IDE / DDT

DDT is an Eclipse-based IDE for the D programming language:
http://ddt-ide.github.io/
101 stars 16 forks source link

Class invariants without parentheses are not supported #144

Closed linkrope closed 8 years ago

linkrope commented 8 years ago

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.