mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
Merge pull request #2627 from int3/master
Parse compound assignment operator followed by a terminator. Closes #2532.
This commit is contained in:
@@ -365,3 +365,13 @@ test '#2213: invocations within destructured parameters', ->
|
||||
throws -> CoffeeScript.compile '({a()})->'
|
||||
throws -> CoffeeScript.compile '({a:b()})->'
|
||||
throws -> CoffeeScript.compile '({a:b.c()})->'
|
||||
|
||||
test '#2532: compound assignment with terminator', ->
|
||||
doesNotThrow -> CoffeeScript.compile """
|
||||
a = "hello"
|
||||
a +=
|
||||
"
|
||||
world
|
||||
!
|
||||
"
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user