match for literal -1 does not compile #194

Closed
clkao opened this Issue Oct 30, 2012 · 1 comment

Projects

None yet

3 participants

@clkao
Contributor
clkao commented Oct 30, 2012
match it
| -1 => -1
| otherwise => 0

should work

@gkz gkz closed this in a4f3379 Oct 30, 2012
@vendethiel
Contributor

Is there a way to mean a no-callee ? Like this :

match a
| i+0 => 2
| +i => 1
| ~b => true 

or something else.

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