Lift the restriction that external identifiers must be functions #568

chenglou opened this Issue Sep 1, 2016 · 2 comments


None yet

3 participants

chenglou commented Sep 1, 2016

cc @bobzhang

In BuckleScript the FFI might be like this:

external foo: document = "document" [@@bs.val]

Merlin warns on the first document that identifier must be a function. Is it possible to relax this requirement?

bobzhang commented Sep 1, 2016

the patch we applied:
basically if the external is annotated with bs, we loose such restriction

let-def commented Sep 6, 2016

This seems minor, we relaxed the check in latest version.

@let-def let-def closed this Sep 6, 2016
@bobzhang bobzhang referenced this issue in bloomberg/bucklescript Sep 30, 2016

Merlin ppx errors #815

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment