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

Commit9a9329e

Browse files
committed
cleanup
1 parent7120b19 commit9a9329e

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

‎src/fsharp/ConstraintSolver.fs‎

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -943,14 +943,13 @@ and SolveMemberConstraint (csenv:ConstraintSolverEnv) ignoreUnresolvedOverload p
943943
lettraitInfo= TTrait(tys,nm,memFlags,argtys,rty,sln)
944944
letrty= GetFSharpViewOfReturnType g rty
945945

946-
// Assert the object type if the constraint is for an instance member
947-
begin
948-
if memFlags.IsInstancethen
949-
match tys, argtyswith
950-
|[ty],(h::_)-> SolveTypEqualsTypKeepAbbrevs csenv ndeep m2 trace h ty
951-
|_-> ErrorD(ConstraintSolverError(FSComp.SR.csExpectedArguments(), m,m2))
952-
else CompleteD
953-
end++(fun()->
946+
// Assert the object type if the constraint is for an instance member
947+
if memFlags.IsInstancethen
948+
match tys, argtyswith
949+
|[ty],(h::_)-> SolveTypEqualsTypKeepAbbrevs csenv ndeep m2 trace h ty
950+
|_-> ErrorD(ConstraintSolverError(FSComp.SR.csExpectedArguments(), m,m2))
951+
else CompleteD
952+
++(fun()->
954953

955954
// Trait calls are only supported on pseudo type (variables)
956955
tys|> IterateD(SolveTypStaticReq csenv trace HeadTypeStaticReq))++(fun()->

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp