-
Notifications
You must be signed in to change notification settings - Fork 0
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
Bug matching types? #12
Comments
Ah, I think this is one of the limitations of implementing match as a macro... this is because we are not able to access the scope information of a Julia program, so the single function foo(x, Float64)
@match x begin
Int => "here"
Float64 => "there"
end
end
foo(1.0, 1.0) # should match what? thus the single @match Float64 begin
$Int => "here"
$Float64 => "there"
end this was the |
also note that we automatically insert |
Ok this now gives you a warning |
* add warning for #12 * improve error msg * add line info to pattern compile error * more precise line info
The following doesn't match correctly; maybe I'm doing something wrong?
result evaluates to: "here"
The text was updated successfully, but these errors were encountered: