Skip to content

match doesn't rebind this #926

Description

@andreivolt

It seems that match doesn't do the right thing that switch does with this:

foo:
  match @bar
  | foo => bar

compiles to:

  foo: (function(){
    var ref$;
    switch (ref$ = [this.bar], false) {
    case !foo(ref$[0]):
      return bar;
    }
  }())

Activity

  1. added a commit that references this issue on Oct 3, 2016
  2. andreivolt commented on Oct 3, 2016

    @andreivolt
    Author

    wow, that was fast! thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions