Skip to content
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

Incorrect resursive record initialization #1716

Closed
vkurchatkin opened this issue Jun 15, 2017 · 0 comments
Closed

Incorrect resursive record initialization #1716

vkurchatkin opened this issue Jun 15, 2017 · 0 comments

Comments

@vkurchatkin
Copy link

Example:

type a = {
  b: b;
}
and b = {
  a: a
};;

let rec a = { b } and b = { a };;

Compiles to:

var a = [];

a[0] = b;

var b = [];

b[0] = a;

Instead of:

var a = [];
var b = [];

a[0] = b;
b[0] = a;
bobzhang added a commit that referenced this issue Jun 15, 2017
bobzhang added a commit that referenced this issue Jun 16, 2017
Squashed commits:
[730ede7] tentative fix for #1716
bobzhang added a commit that referenced this issue Jun 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants