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

Weird indented code generated #2642

Closed
bobzhang opened this issue Mar 18, 2018 · 0 comments
Closed

Weird indented code generated #2642

bobzhang opened this issue Mar 18, 2018 · 0 comments

Comments

@bobzhang
Copy link
Member

let rec isfree id = function
    Pident id' -> Ident.same id id'
  | Pdot(p, s, pos) -> isfree id p
  | Papply(p1, p2) -> isfree id p1 || isfree id p2
 function isfree(id, _param) {
   while(true) {
     var param = _param;
     switch (param.tag | 0) {
       case 0 : 
           return Caml_obj.caml_equal(id, param[0]);
       case 1 : 
           _param = param[0];
           continue ;
           case 2 : 
           if (isfree(id, param[0])) {
             return /* true */1;
           } else {
             _param = param[1];
             continue ;             
           }
     }
   };
bobzhang added a commit that referenced this issue Mar 19, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix #2642
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

No branches or pull requests

1 participant