Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdd628c6

Browse files
committed
we don't need to check for [],[] twice
1 parenta0d43bd commitdd628c6

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

‎src/fsharp/ConstraintSolver.fs‎

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -814,18 +814,15 @@ and private SolveTypEqualsTypKeepAbbrevsWithCxsln csenv ndeep m2 trace cxsln ty1
814814
| err-> ErrorD err)
815815

816816
andSolveTypEqualsTypEqns csenv ndeep m2 trace cxsln origl1 origl2=
817-
match origl1,origl2with
818-
|[],[]-> CompleteD
819-
|_->
820-
// We unwind Iterate2D by hand here for performance reasons.
821-
let recloop l1 l2=
822-
match l1,l2with
823-
|[],[]-> CompleteD
824-
| h1::t1, h2::t2->
825-
SolveTypEqualsTypKeepAbbrevsWithCxsln csenv ndeep m2 trace cxsln h1 h2++(fun()-> loop t1 t2)
826-
|_->
827-
ErrorD(ConstraintSolverTupleDiffLengths(csenv.DisplayEnv,origl1,origl2,csenv.m,m2))
828-
loop origl1 origl2
817+
// We unwind Iterate2D by hand here for performance reasons.
818+
let recloop l1 l2=
819+
match l1,l2with
820+
|[],[]-> CompleteD
821+
| h1::t1, h2::t2->
822+
SolveTypEqualsTypKeepAbbrevsWithCxsln csenv ndeep m2 trace cxsln h1 h2++(fun()-> loop t1 t2)
823+
|_->
824+
ErrorD(ConstraintSolverTupleDiffLengths(csenv.DisplayEnv,origl1,origl2,csenv.m,m2))
825+
loop origl1 origl2
829826

830827
andSolveFunTypEqn csenv ndeep m2 trace cxsln d1 d2 r1 r2=
831828
SolveTypEqualsTypKeepAbbrevsWithCxsln csenv ndeep m2 trace cxsln d1 d2++(fun()->

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp