test: for #916
This commit is contained in:
parent
5e36162f9b
commit
52b6a04088
2 changed files with 5 additions and 0 deletions
4
tests/lean/916.lean
Normal file
4
tests/lean/916.lean
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
example : Id Nat := do
|
||||
let mut x := 1
|
||||
have x : Nat := 2
|
||||
x
|
||||
1
tests/lean/916.lean.expected.out
Normal file
1
tests/lean/916.lean.expected.out
Normal file
|
|
@ -0,0 +1 @@
|
|||
916.lean:3:2-3:19: error: mutable variable 'x' cannot be shadowed
|
||||
Loading…
Add table
Reference in a new issue