We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
let mut
~q
This complains on each x :=
x :=
import Qq open Qq Lean example : MetaM Nat := do let mut x := 1 if let ~q(Prop) := q(Type) then x := 2 else x := 3 return x
with error
x cannot be mutated, only variables declared using let mut can be mutated. If you did not intent to mutate but define x, consider using let x instead
x
let x
Normally this would be legal:
example : MetaM Nat := do let mut x := 1 if let true := false then x := 2 else x := 3 return x
This is almost certainly related to #21
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This complains on each
x :=
with error
Normally this would be legal:
This is almost certainly related to #21
The text was updated successfully, but these errors were encountered: