Skip to content

Commit

Permalink
Fix: Infinity is not a real
Browse files Browse the repository at this point in the history
  • Loading branch information
rozlynd committed Jan 25, 2024
1 parent 54915f6 commit 2e2ee94
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/type/t_synth.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1084,13 +1084,8 @@ and expr_aux scx oe =
(ret, TAtm TAIdv)

| Internal B.Infinity ->
if typelvl scx > 0 then
let ret = Internal B.Infinity @@ oe in
let ret = assign ret Props.tpars_prop [ ] in
(ret, TAtm TARel)
else
let ret = Internal B.Infinity @@ oe in
(ret, TAtm TAIdv)
let ret = Internal B.Infinity @@ oe in
(ret, TAtm TAIdv)

| Apply ({ core = Internal (B.Plus | B.Minus | B.Times | B.Exp) } as op, [ e ; f ]) ->
let e, ty01 = expr scx e in
Expand Down

0 comments on commit 2e2ee94

Please sign in to comment.