Skip to content

Commit

Permalink
[compiler] smal fix
Browse files Browse the repository at this point in the history
  • Loading branch information
FissoreD committed Oct 8, 2024
1 parent 3a7367f commit 3c06274
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/compiler.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2977,7 +2977,6 @@ let static_check ~exec ~checker:(state,program)
let time = `Compiletime in
let state, p,q = quote_syntax time state q in


let estract_info_from_types tname {Types.lst} (state, tlist, functionality) =
let functionality = ref functionality in
let state = ref state in
Expand All @@ -2987,12 +2986,7 @@ let static_check ~exec ~checker:(state,program)
let ttypet = unfold_type_abbrevs ~is_typeabbrev:false ~compiler_state initial_depth type_abbrevs ttype 0 in
let st, ttypet = quote_pretype time ~compiler_state st ttypet in
state := st;
begin
if is_functional ttype.ttype then
let st, f = mkQCon time ~compiler_state st ~on_type:false tname in
state := st;
functionality := f :: !functionality
end;
if is_functional ttype.ttype then functionality := c :: !functionality;
App(colonc,c, [close_w_binder forallc ttypet ttype.tamap])) lst
in
!state, l :: tlist, !functionality
Expand Down

0 comments on commit 3c06274

Please sign in to comment.