Skip to content

Commit

Permalink
To be fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
smimram committed Nov 5, 2024
1 parent 7ac9bc2 commit ea92499
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/lang.ml
Original file line number Diff line number Diff line change
Expand Up @@ -431,14 +431,16 @@ let rec infer tenv env e =
| App (t, u) ->
(
let a = infer tenv env t in
let rec aux a =
Printf.printf "a is %s\n%!" (to_string a);
let (* rec *) aux a =
match a.desc with
| Pi (`Explicit, x, a, b) ->
check tenv env u a;
let u = eval env u in
eval ((x,u)::env) b
| Pi (`Implicit, _x, _a, b) ->
aux b
| Pi (`Implicit, _x, _a, _b) ->
(* aux b *)
failwith "TOOD: correct implemenetation"
| _ -> failure t.pos "of type %s but a function was expected" (to_string a)
in
aux a
Expand Down

0 comments on commit ea92499

Please sign in to comment.