This commit is contained in:
Leonardo de Moura 2022-01-03 07:57:16 -08:00
parent 5e36162f9b
commit 52b6a04088
2 changed files with 5 additions and 0 deletions

4
tests/lean/916.lean Normal file
View file

@ -0,0 +1,4 @@
example : Id Nat := do
let mut x := 1
have x : Nat := 2
x

View file

@ -0,0 +1 @@
916.lean:3:2-3:19: error: mutable variable 'x' cannot be shadowed