mirror of https://github.com/lukechilds/rollup.git
Rich Harris
8 years ago
3 changed files with 12 additions and 1 deletions
@ -0,0 +1,4 @@ |
|||
module.exports = { |
|||
description: 'arrow function without braces returning a function (#1032)', |
|||
buble: true |
|||
}; |
@ -0,0 +1,7 @@ |
|||
const f = (a) => (b) => { return a * b } |
|||
function ff (a) { return f(a) } |
|||
assert.equal( ff(2)(3), 6 ); |
|||
|
|||
const g = (a) => { return (b) => { return a - b } } |
|||
function gg (a) { return g(a) } |
|||
assert.equal( gg(2)(3), -1 ); |
Loading…
Reference in new issue