This commit is contained in:
2026-02-20 14:29:28 -08:00
parent 32400bdd4e
commit 7d5789147d
6 changed files with 15 additions and 28 deletions

View File

@@ -18,6 +18,7 @@ getType : Tm -> M (Maybe Tm)
getType (Ref fc nm) = do
top <- getTop
case lookup nm top of
-- Should not nappen.
Nothing => error fc "\{show nm} not in scope"
(Just (MkEntry _ name type def _)) => pure $ Just type
getType tm = pure Nothing