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

Parse error of "as" keyword #16

Closed
tunguski opened this issue Apr 22, 2017 · 0 comments
Closed

Parse error of "as" keyword #16

tunguski opened this issue Apr 22, 2017 · 0 comments

Comments

@tunguski
Copy link
Owner

tunguski commented Apr 22, 2017

Simple form:

balanceHelp tree =
  case tree of
    RBNode_elm_builtin Black as d -> x

elm-lang/core Dict:

balanceHelp : Dict k v -> Dict k v
balanceHelp tree =
  case tree of
    -- handle double blacks
    RBNode_elm_builtin BBlack xk xv a (RBNode_elm_builtin NBlack zk zv (RBNode_elm_builtin Black yk yv b c) (RBNode_elm_builtin Black _ _ _ _ as d)) ->
      RBNode_elm_builtin Black yk yv (RBNode_elm_builtin Black xk xv a b) (balance Black zk zv c (redden d))

Does not parse.

@tunguski tunguski changed the title Parse error in elm-lang/core Dict Parse error of "as" keyword Apr 22, 2017
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