Skip to content

Conversation

@lthls
Copy link

@lthls lthls commented Mar 1, 2021

I'm a bit surprised that Type_descr.join doesn't seem to care whether the resulting type is valid in the target env, but at least when coming from Typing_env_level.join the target env always contains all the names from both branches, so this should be safe.

@lthls lthls force-pushed the constant-aliases branch from f310c0d to e17bf39 Compare March 8, 2021 17:11
@lthls
Copy link
Author

lthls commented Mar 8, 2021

I've rebased this PR on top of #329, as without it we generate wrong code, and added an example.

@chambart
Copy link

Good when 329 is in

@chambart
Copy link

I'd like the test to be added to the testsuite : if this allocates, the join fails. This should probably wait for the new unboxing for this to be valid. And the test needs to be changed a bit so that Foo 42 isn't a constant but something allocated.

@lthls lthls force-pushed the constant-aliases branch from e17bf39 to c4a7f75 Compare April 13, 2021 14:05
@chambart chambart merged commit 1ae7614 into ocaml-flambda:flambda2.0-stable Apr 15, 2021
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 this pull request may close these issues.

2 participants