Skip to content

Commit

Permalink
Fix #1504
Browse files Browse the repository at this point in the history
  • Loading branch information
Negabinary committed Feb 17, 2025
1 parent 2f9c4ab commit 30ec64e
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/haz3lcore/statics/Info.re
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,18 @@ let fixed_typ_ok: ok_pat => Typ.t =

let fixed_typ_err_common: error_common => Typ.t =
fun
| NoType(_) => Unknown(Internal) |> Typ.temp
| NoType(FreeConstructor(c)) =>
Sum([
ConstructorMap.Variant(c, [Id.invalid], None),
ConstructorMap.BadEntry(Unknown(Internal) |> Typ.temp),
])
|> Typ.temp
| NoType(BadToken(_))
| NoType(BadTrivAp(_))
| NoType(WantTuple)
| NoType(LabelNotFound(_))
| NoType(BadLabel(_))
| NoType(InvalidLabel(_)) => Unknown(Internal) |> Typ.temp
| TupleLabelError({typ, _})
| DuplicateLabel(_, typ) => typ
| Inconsistent(Expectation({ana, _})) => ana
Expand Down

0 comments on commit 30ec64e

Please sign in to comment.