lean4-htt/tests/lean/run/1686.lean
2022-10-07 16:27:44 -07:00

7 lines
227 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import Lean
open Lean Meta
def substIssue (hLocalDecl : LocalDecl) : MetaM Unit := do
let error {α} _ : MetaM α := throwError "{hLocalDecl.type}"
let some (_, lhs, rhs) ← matchEq? hLocalDecl.type | error ()
error ()