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

Fix compiler crash on case methods with _ as a method parameter. #2252

Merged
merged 2 commits into from
Sep 28, 2017

Conversation

mfelsche
Copy link
Contributor

it was failing for _ as a case method argument.

Case method docstrings contain the signature and docstrings of each case method concatenated.
The method of printing the signature didn't work for _, the dont care symbol.

With this PR it still won't print every possible expression correctly (e.g. recover expressions) but it won't fail anymore.

This fixes #2249.

it was failing for _ as a case method argument
@mfelsche mfelsche added the changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge label Sep 28, 2017
@jemc jemc changed the title fix docstring merging for case methods Fix compiler crash on case methods with _ as a method parameter. Sep 28, 2017
@jemc
Copy link
Member

jemc commented Sep 28, 2017

I made a small formatting change, and changed the PR title to make a clearer changelog entry.

Thanks!

@jemc jemc merged commit 6628537 into master Sep 28, 2017
ponylang-main added a commit that referenced this pull request Sep 28, 2017
@jemc jemc deleted the case-methods-dontcare branch September 28, 2017 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compiler Assertion Error: FizzBuzz code in Tutorial
2 participants