Skip to content

Commit

Permalink
Merge pull request #3 from nojaf/fix-surface-area
Browse files Browse the repository at this point in the history
Non measure kinds are not measures.
  • Loading branch information
edgarfgp authored Jul 25, 2022
2 parents 5967828 + 080f98d commit 13a7955
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Compiler/Checking/CheckExpressions.fs
Original file line number Diff line number Diff line change
Expand Up @@ -4658,7 +4658,8 @@ and TcTupleType kindOpt cenv newOk checkConstraints occ env tpenv isStruct (args
let isMeasure =
match kindOpt with
| Some TyparKind.Measure -> true
| None | Some _ -> args |> List.exists(function | TupleTypeSegment.Slash _ -> true | _ -> false)
| None -> args |> List.exists(function | TupleTypeSegment.Slash _ -> true | _ -> false)
| Some _ -> false

if isMeasure then
let ms,tpenv = TcMeasuresAsTuple cenv newOk checkConstraints occ env tpenv args m
Expand Down

0 comments on commit 13a7955

Please sign in to comment.