Skip to content

Commit 324bf38

Browse files
authored
Remove dead TcTypeMeasureDivide (#14500)
1 parent 81252e0 commit 324bf38

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/Compiler/Checking/CheckExpressions.fs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4551,16 +4551,6 @@ and TcTypeMeasurePower kindOpt (cenv: cenv) newOk checkConstraints occ env tpenv
45514551
let ms, tpenv = TcMeasure cenv newOk checkConstraints occ env tpenv ty m
45524552
TType_measure (Measure.RationalPower (ms, TcSynRationalConst exponent)), tpenv
45534553

4554-
and TcTypeMeasureDivide kindOpt (cenv: cenv) newOk checkConstraints occ env tpenv typ1 typ2 m =
4555-
match kindOpt with
4556-
| Some TyparKind.Type ->
4557-
errorR(Error(FSComp.SR.tcUnexpectedSymbolInTypeExpression("/"), m))
4558-
NewErrorType (), tpenv
4559-
| _ ->
4560-
let ms1, tpenv = TcMeasure cenv newOk checkConstraints occ env tpenv typ1 m
4561-
let ms2, tpenv = TcMeasure cenv newOk checkConstraints occ env tpenv typ2 m
4562-
TType_measure (Measure.Prod(ms1, Measure.Inv ms2)), tpenv
4563-
45644554
and TcTypeMeasureApp kindOpt (cenv: cenv) newOk checkConstraints occ env tpenv arg1 args postfix m =
45654555
match arg1 with
45664556
| StripParenTypes (SynType.Var(_, m1) | SynType.MeasurePower(_, _, m1)) ->

0 commit comments

Comments
 (0)