gracelang / minigrace

Self-hosting compiler for the Grace programming language
39 stars 22 forks source link

method requests in reuse statements don't accept a block as argument #257

Closed apblack closed 6 years ago

apblack commented 6 years ago

The request

colorT(initialC) constructor {c → pointX(coord) y(coord) colored(c)}

generates the error message

Syntax error: a multi-part method request must end with an argument list, either parenthesized or self-delimiting.

while highlighting the part of the request up to and including the third name part constructor, but not the block argument. Putting parentheses around the block avoids the problem.

apblack commented 6 years ago

Fixed by commit 4452ecee