-
-
Notifications
You must be signed in to change notification settings - Fork 57
fix: make Js.t
abstract (again)
#786
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
Conversation
3800d30
to
1a041b5
Compare
1b9691d fixes the tests for this change, but I'm not sure why |
@@ -5,14 +5,12 @@ Test `@mel.unwrap` in `@mel.obj` | |||
> external func : | |||
> param:string -> | |||
> polyParam:([ \`Str of string | \`Int of int ][@mel.unwrap]) -> | |||
> unit -> | |||
> _ Js.t = "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a regression. Shouldn't mel.obj
return a 'a Js.t
value?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's still a Js.t, but it gets around the weak type variable warning
fix: tests
not sure about this one. also seems to happen on 4.14
1b9691d
to
6e96d04
Compare
CHANGES: - Add TRMC (Tail Recursion Modulo Cons) support ([melange-re/melange#743](melange-re/melange#743)) - [playground]: Add `melange.dom` to bundle ([melange-re/melange#779](melange-re/melange#779)) - Fix `Sys.argv` runtime to match declared type ([melange-re/melange#791](melange-re/melange#791)) - Make `'a Js.t` abstract (again), fixing a regression when bringing back OCaml-style objects BuckleScript ([melange-re/melange#786](melange-re/melange#786)) - Don't issue "unused attribute" warning for well-formed `@@@mel.config` in interface files ([melange-re/melange#800](melange-re/melange#800)) - Stop showing `Js__.Js_internal` in types and error messages ([melange-re/melange#798](melange-re/melange#798)) - Fix printing of OCaml-style objects and uncurried application ([melange-re/melange#807](melange-re/melange#807))
CHANGES: - Add TRMC (Tail Recursion Modulo Cons) support ([melange-re/melange#743](melange-re/melange#743)) - [playground]: Add `melange.dom` to bundle ([melange-re/melange#779](melange-re/melange#779)) - Fix `Sys.argv` runtime to match declared type ([melange-re/melange#791](melange-re/melange#791)) - Make `'a Js.t` abstract (again), fixing a regression when bringing back OCaml-style objects BuckleScript ([melange-re/melange#786](melange-re/melange#786)) - Don't issue "unused attribute" warning for well-formed `@@@mel.config` in interface files ([melange-re/melange#800](melange-re/melange#800)) - Stop showing `Js__.Js_internal` in types and error messages ([melange-re/melange#798](melange-re/melange#798)) - Fix printing of OCaml-style objects and uncurried application ([melange-re/melange#807](melange-re/melange#807))
Looks like there's a missing commit from rescript-lang/rescript#4967 that we must have forgotten to revert: rescript-lang/rescript@ee283b0
I'm going to do another pass over the full PR and make sure we're not missing anything else.
fixes #758