Skip to content

Commit

Permalink
Merge pull request #134 from shym/integer-not-int
Browse files Browse the repository at this point in the history
Translate Gospel `integer` as `Ortac_runtime.integer`
  • Loading branch information
n-osborne authored Sep 14, 2023
2 parents febd0f2 + c2f8823 commit 5aded65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/ocaml_of_gospel.ml
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ and term ~context (t : Tterm.term) : expression =
let core_type_of_ty_with_subst subst ty =
let open Ttypes in
let lident_of_tysymbol ts =
(if ty_equal ty_integer ty then "int" else Fmt.str "%a" Ident.pp ts.ts_ident)
(if ty_equal ty_integer ty then "Ortac_runtime.integer"
else Fmt.str "%a" Ident.pp ts.ts_ident)
|> Builder.lident
in
let rec aux ty =
Expand Down

0 comments on commit 5aded65

Please sign in to comment.