Skip to content
New issue

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

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

Already on GitHub? # to your account

Allow [@mel.as ...] in module definitions #740

Closed
anmonteiro opened this issue Sep 17, 2023 · 1 comment
Closed

Allow [@mel.as ...] in module definitions #740

anmonteiro opened this issue Sep 17, 2023 · 1 comment
Milestone

Comments

@anmonteiro
Copy link
Member

(* x.ml *)

module Object = struct end
$ melc -ppx melppx x.ml
// Generated by Melange
'use strict';


var $$Object = {};

exports.$$Object = $$Object;
/* No side effect */

should be possible to use [@mel.as ..] like it is for let bindings

@anmonteiro anmonteiro added this to the Melange v3 milestone Oct 19, 2023
@anmonteiro
Copy link
Member Author

fixed in #879

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

No branches or pull requests

1 participant