mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
disallow inline chained call after func glyph (#4590)
This commit is contained in:
committed by
Geoffrey Booth
parent
b1d2061cbc
commit
58c608620e
@@ -1601,6 +1601,16 @@ test 'Bound method called as callback before binding throws runtime error', ->
|
||||
ok no
|
||||
d = new Derived
|
||||
|
||||
test "#3845/#3446: chain after function glyph (but not inline)", ->
|
||||
assertErrorFormat '''
|
||||
a -> .b
|
||||
''',
|
||||
'''
|
||||
[stdin]:1:6: error: unexpected .
|
||||
a -> .b
|
||||
^
|
||||
'''
|
||||
|
||||
test "#3906: error for unusual indentation", ->
|
||||
assertErrorFormat '''
|
||||
a
|
||||
|
||||
Reference in New Issue
Block a user