From 34185d4fefda37e151c1f5c84954bcb8da2c1560 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20B=C3=B6ving?= Date: Mon, 18 Sep 2023 22:54:37 +0200 Subject: [PATCH] chore: debug --- DocGen4/Process/InstanceInfo.lean | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DocGen4/Process/InstanceInfo.lean b/DocGen4/Process/InstanceInfo.lean index 3cd306de..e25cec67 100644 --- a/DocGen4/Process/InstanceInfo.lean +++ b/DocGen4/Process/InstanceInfo.lean @@ -28,7 +28,7 @@ where def InstanceInfo.ofDefinitionVal (v : DefinitionVal) : MetaM InstanceInfo := do let mut info ← DefinitionInfo.ofDefinitionVal v - let some className ← isClass? v.type | unreachable! + let some className ← isClass? v.type | panic! s!"isClass? on {v.name} returned none" if let some instAttr ← getDefaultInstance v.name className then info := { info with attrs := info.attrs.push instAttr } let typeNames ← getInstanceTypes v.type