diff options
Diffstat (limited to 'src/LambdaCube/Compiler/Infer.hs')
-rw-r--r-- | src/LambdaCube/Compiler/Infer.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/LambdaCube/Compiler/Infer.hs b/src/LambdaCube/Compiler/Infer.hs index 9397245b..fe17cfa4 100644 --- a/src/LambdaCube/Compiler/Infer.hs +++ b/src/LambdaCube/Compiler/Infer.hs | |||
@@ -1153,7 +1153,7 @@ handleStmt defs = \case | |||
1153 | Let n mf mt ar t_ -> do | 1153 | Let n mf mt ar t_ -> do |
1154 | af <- addF | 1154 | af <- addF |
1155 | let t__ = maybe id (flip SAnn . af) mt t_ | 1155 | let t__ = maybe id (flip SAnn . af) mt t_ |
1156 | (x, t) <- inferTerm (snd n) tr id $ trSExp' $ fromMaybe (SBuiltin "primFix" `SAppV` SLamV t__) $ downS 0 t__ | 1156 | (x, t) <- inferTerm (snd n) tr id $ trSExp' $ if usedS n t__ then SBuiltin "primFix" `SAppV` SLamV (substSG0 n t__) else t__ |
1157 | tellStmtType (fst n) t | 1157 | tellStmtType (fst n) t |
1158 | addToEnv n (mkELet (True, n, SData mf, ar) x t, t) | 1158 | addToEnv n (mkELet (True, n, SData mf, ar) x t, t) |
1159 | PrecDef{} -> return () | 1159 | PrecDef{} -> return () |