disallow inline chained call after func glyph (#4590)

This commit is contained in:
Julian Rosse
2017-06-29 21:00:01 -05:00
committed by Geoffrey Booth
parent b1d2061cbc
commit 58c608620e
3 changed files with 13 additions and 3 deletions

View File

@@ -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