nodes: object literals are now parenthesized based on @tags.front (which indicates if the node leads an expression statement), fixing #542

This commit is contained in:
satyr
2010-10-12 11:25:54 +09:00
parent ed79715841
commit ac841ca4e9
3 changed files with 34 additions and 34 deletions

View File

@@ -236,3 +236,7 @@ result = obj.object()
eq result.one, 1
eq result.two, 2
eq result.two, obj.list()[1]
#542: Objects leading expression statement should be parenthesized.
{f: -> ok yes }.f() + 1