Skip to content

Commit

Permalink
Add tests for gkz#746
Browse files Browse the repository at this point in the history
  • Loading branch information
Isiah Meadows committed Feb 16, 2016
1 parent 63c19f5 commit 5557f98
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/function.ls
Original file line number Diff line number Diff line change
Expand Up @@ -777,3 +777,15 @@ l = (!!@x) -> x
obj = {-x}
l.call obj, 'hello'
eq true obj.x

# [#746](https://github.com/gkz/LiveScript/issues/746)
m = a: -> it
n = (m.a _ .b)
eq 1 n b: 1

o = (m.a _ .b!)
eq 1 o b: -> 1

p = 2
q = (m.a _ .b p)
eq 3 p b: -> 1 + it

0 comments on commit 5557f98

Please sign in to comment.