fix regressed error message for missing cases

This commit is contained in:
2025-02-16 21:46:19 -08:00
parent 001cba26ee
commit 041521ab47
5 changed files with 7 additions and 10 deletions

View File

@@ -98,9 +98,6 @@ compileTerm tm@(App _ _ _) = case funArgs tm of
(t@(Ref fc nm), args) => do
args' <- traverse compileTerm args
arity <- arityForName fc nm
top <- getTop
-- let (Just (MkEntry _ _ type _)) = lookup nm top
-- | Nothing => error fc "Undefined name \{show nm}"
apply (CRef (show nm)) args' Lin arity
(t, args) => do
debug $ \ _ => "apply other \{render 90 $ pprint Nil t}"