Skip to content

Commit

Permalink
Tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
auduchinok committed Dec 21, 2023
1 parent 0b9c0ad commit 5a1e2d4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Compiler/Checking/CheckExpressions.fs
Original file line number Diff line number Diff line change
Expand Up @@ -4954,7 +4954,12 @@ and TcTypeApp (cenv: cenv) newOk checkConstraints occ env tpenv m tcref pathType
if tcref.Deref.IsProvided then TcProvidedTypeApp cenv env tpenv tcref synArgTys m else
#endif

let tps = tinst |> List.map (function TType_var(typar, _) -> typar | t -> failwith $"TcTypeApp: {t}")
let tps = tinst |> List.map (fun t ->
match t with
| TType_var(typar, _)
| TType_measure(Measure.Var typar) -> typar
| t -> failwith $"TcTypeApp: {t}"
)

// If we're not checking constraints, i.e. when we first assert the super/interfaces of a type definition, then just
// clear the constraint lists of the freshly generated type variables. A little ugly but fairly localized.
Expand Down

0 comments on commit 5a1e2d4

Please sign in to comment.