-
-
Notifications
You must be signed in to change notification settings - Fork 662
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
-D no-inline
breaks map literals in HashLink
#10912
Comments
Yeah, OCaml has no "trace anything" functionality. You can try something like |
Ok, the It turns out this is pretty easy to reproduce. Just compile the following for HashLink with class Main {
public static function main():Void {
var map:Map<String, String> = ["a" => "b"];
}
} (It's probably obvious, but (I don't know why Lime would use |
-D no-inline
breaks map literals in HashLink
When map comprehension is used (with When one builds the map manually, the types match, so this seems like bad codegen in whatever's responsible for desugaring map comprehension? |
Edit: See my reply below for a minimal example.
I'm trying to build the Lime tools for HL, but it gives me an
Invalid_argument("List.map2")
error. UsingOCAMLRUNPARAM=b
I was able to track it down to genhl.ml line 519, but that's not very helpful.I would absolutely love to give you a minimal example, but the error message isn't specific enough for me to narrow it down.
When I have more time, I think my plan is to insert a temporary
try
block in genhl.ml so I can gete.epos
(which I would use to narrow the error down). But I have no Ocaml experience, so I was hoping someone else could tell me how to print that data. This is my best attempt at the code:The text was updated successfully, but these errors were encountered: