Skip to content

bug in compiling higher-order functions #13

@Necr0x0Der

Description

@Necr0x0Der

This code:

(: apply_i (-> Int (-> Int Int) Int))
(= (apply_i $x $f) ($f $x))

compiles, while this code (with another order of arguments)

(: apply_i (-> (-> Int Int)  Int Int))
(= (apply_i $f $x) ($f $x))

doesn't compile, which seems like a bug

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions