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

Match invents numbers with non-total pattern #253

Closed
kaeluka opened this issue Oct 19, 2015 · 2 comments
Closed

Match invents numbers with non-total pattern #253

kaeluka opened this issue Oct 19, 2015 · 2 comments

Comments

@kaeluka
Copy link
Contributor

kaeluka commented Oct 19, 2015

print(match Nothing : Maybe int with Just x => 1) will print 0. IMO, to crash would be a more appropriate behaviour.

@kikofernandez
Copy link
Contributor

I believe this is fixed with the pattern matching. @glundi, can you confirm this?

@ghost
Copy link

ghost commented Nov 14, 2015

Yes, it will now crash.

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

2 participants