Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/Checker.ml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ let populate_env files =
in
{ env with types = M.add lid typ env.types }
| DGlobal (_, lid, n, t, _) ->
assert (n = 0);
let t = if n > 0 then TPoly ({ n; n_cgs = 0 }, t) else t in
{ env with globals = M.add lid t env.globals }
| DFunction (_, _, n_cgs, n, ret, lid, binders, _) ->
if not !Options.allow_tapps && n <> 0 then
Expand Down Expand Up @@ -212,7 +212,7 @@ and check_decl env d =
let env = { env with n_cgs } in
check env t body
| DGlobal (_, name, n, t, body) ->
assert (n = 0);
assert (!Options.allow_tapps || n = 0);
let env = locate env (InTop name) in
check env t body
| DExternal _
Expand Down
Loading