Closed IsaacOscar closed 5 years ago
According to the grammar, the RHS of a type-declaration must be a TypeExpression or InterfaceLiteral, however the following code does not cause a syntax-error:
TypeExpression
InterfaceLiteral
type X = object{}
Despite object{} not being a TypeExpression.
object{}
This issue is now resolved. A test for it was added to t179 in commit b3ee21d3.
According to the grammar, the RHS of a type-declaration must be a
TypeExpression
orInterfaceLiteral
, however the following code does not cause a syntax-error:Despite
object{}
not being aTypeExpression
.