8000 treat Js.import as side-effectful · Issue #1169 · melange-re/melange · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000

treat Js.import as side-effectful #1169

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
anmonteiro opened this issue Sep 15, 2024 · 0 comments · Fixed by #1172
Closed

treat Js.import as side-effectful #1169

anmonteiro opened this issue Sep 15, 2024 · 0 comments · Fixed by #1172

Comments

@anmonteiro
Copy link
Member
anmonteiro commented Sep 15, 2024

in #1164, the following snippet:

module type int = (module type of Int);

let () = {
  let _x = Js.import((module Stdlib.Int: int));
  ();
}

produces empty output. We should probably treat Js.import as side-effectful instead because an ignored import should still be imported?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant
0