Closed
Description
Consider this snippet:
module X = struct
type 'a t = 'a option = None | Some of 'a
end
let () =
match X.None with
| Some _ -> Js.log "A BUG!"
| None -> Js.log "OK"
which results in:
// Generated by Melange
var X = {};
console.log("A BUG!");
export {
X ,
}
/* Not a pure module */
Rescript handles this ok.
Metadata
Metadata
Assignees
Labels
No labels