Curried bounded function works wrong. #232

Closed
Sitin opened this Issue Dec 16, 2012 · 0 comments

Projects

None yet

2 participants

@Sitin
Sitin commented Dec 16, 2012

It seems that curried bounded function looses it's context.
The following test written in LiveScript for Node.js fails.

/*
 * Curried bounded function works wrong.
 */
assert = require \assert

class A
  (@list = \middle) ->

  enclose: (head, tail) ~~>
    [head, @list, tail].join!

a = new A

fn = a.enclose \head
curried = fn \tail

plain = a.enclose \head, \tail

# "Plain" and curried results should be equal:
assert.equal curried, plain
@gkz gkz closed this in ba5343f Dec 30, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment