Aoc passes, and it successfully compiles itself.

This commit is contained in:
2025-01-05 13:56:38 -08:00
parent 9172d88be7
commit 627ca5d91b
6 changed files with 18 additions and 12 deletions

View File

@@ -257,7 +257,7 @@ solveAutos mstart = do
top <- get
mc <- readIORef top.metaCtx
let mlen = length' mc.metas - mstart
res <- run $ filter isAuto (take (cast mlen) mc.metas)
res <- run $ filter isAuto (ite (mstart == 0) mc.metas $ take (cast mlen) mc.metas)
if res then solveAutos mstart else pure MkUnit
where
isAuto : MetaEntry -> Bool