chore: add a test for #6957, fixed by the new compiler (#8904)

This commit is contained in:
Cameron Zwarich 2025-06-20 14:44:09 -07:00 committed by GitHub
parent e7c8baaef5
commit 0fcb6495d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

6
tests/lean/run/6957.lean Normal file
View file

@ -0,0 +1,6 @@
set_option linter.unusedVariables false
example (x : Nat) : Option Nat := do
let ⟨a, ha⟩ ← Option.attach (guard (x < 10))
return 0