lean4-htt/tests/lean/run/panicAtCheckAssignment.lean
Leonardo de Moura be841a7cad chore: throwError! => throwError, throwErrorAt! => throwErrorAt
@Kha I marked the corresponding methods as `protected`.
I currently can't stand `throw_error`, and I am optimistic about
server highlighting feature you are working on :)
2021-03-11 11:59:45 -08:00

12 lines
211 B
Text

import Lean
open Lean
open Lean.Meta
def bug : MetaM Unit := do
let i := 0
forallTelescopeReducing arbitrary fun ys _ => do
let mut j := 0
for y in ys do
throwError "#{i+1}"
j := j + 1