-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
The following code produces a parsing error when run on the playground
ask {
const sum = fun(a, b) {
a + b
}
const diff = fun(a, b) {
a - b
}
const myMath = { sum, diff }
myMath.sum(2, 2)
}
It works fine, when myMath
is destructured first:
const s = myMath.sum
s(2,2)
Used expression (myMath.sum(2, 2)
) should be translated into
<call
args={
<list>
{2}
{2}
</list>
}
>
<call
name="at"
args={
<list>
<ref name="myMath" />
{"sum"}
</list>
}
/>
</call>
Note that call
in AskJSX can accept either the name
property in args or function expression in its first child.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working