lean4-htt/tests/lean/run/synthPendingBug.lean
2021-08-04 20:07:06 -07:00

15 lines
431 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.

inductive Nested
| nest (a : Array Nested) : Nested
class OfUnit (α : Type) where
ofUnit : Unit → Except String α
instance myArrayInst [OfUnit α] : OfUnit (Array α) where
ofUnit _ := Except.error ""
open OfUnit
partial def ofUnitNested (_ : Unit) : Except String Nested := do
let localinst : OfUnit Nested := ⟨ofUnitNested⟩
let units : Array Unit ← Except.ok #[]
let a ← ofUnit ()
return Nested.nest a