- Notifications
You must be signed in to change notification settings - Fork 471
Open
Description
trying to create an extern that takes only unit and actually injects some json with no other args crashes the compiler:
@scope("somescope") external myfn: @as(json`{foo:true}`) _ => string = "somefn"
gives
Fatal error: exception File "compiler/ml/ast_uncurried.ml", line 7, characters 9-15: Assertion failed
works if i add another arg:
@scope("somescope") external myfn: (unit, @as(json`{foo:true}`) _) => string = "somefn"
Metadata
Metadata
Assignees
Labels
No labels