mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 19:34:27 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user