joews / peach

A functional programming language
MIT License
3 stars 0 forks source link

Immediate calls of zero-arg functions are parsed incorrectly #6

Closed joews closed 7 years ago

joews commented 7 years ago
❯ () => 2
λ: anonymous: () -> Number
❯ (() => 2)
λ: anonymous: () -> Number
❯ ((() => 2))
2: Number

Line 2 (() => 2)) should call the function, resulting in type Number.

joews commented 7 years ago

This will be fixed with #41