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

Commit2cb9693

Browse files
Vasily KirichenkoVasily Kirichenko
Vasily Kirichenko
authored and
Vasily Kirichenko
committed
Revert "replace List.splitAt >> fst with List.take"
This reverts commitc4f0605.
1 parent155f4d8 commit2cb9693

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/fsharp/SignatureConformance.fs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ type Checker(g, amap, denv, remapInfo: SignatureRepackageInfo, checkingSig) =
236236
err(fun(x,y,z)-> FSComp.SR.ValueNotContainedMutabilityGenericParametersDiffer(x, y, z, string mtps, string ntps))
237237
elif implValInfo.KindsOfTypars<> sigValInfo.KindsOfTyparsthen
238238
err(FSComp.SR.ValueNotContainedMutabilityGenericParametersAreDifferentKinds)
239-
elifnot(sigArgInfos.Length<= implArgInfos.Length&& List.forall2(fun x y-> List.length x<= List.length y) sigArgInfos(List.truncate sigArgInfos.Length implArgInfos))then
239+
elifnot(sigArgInfos.Length<= implArgInfos.Length&& List.forall2(fun x y-> List.length x<= List.length y) sigArgInfos(fst(List.splitAt sigArgInfos.Length implArgInfos)))then
240240
err(fun(x,y,z)-> FSComp.SR.ValueNotContainedMutabilityAritiesDiffer(x, y, z, id.idText, string sigArgInfos.Length, id.idText, id.idText))
241241
else
242242
letimplArgInfos= implArgInfos|> List.take sigArgInfos.Length

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp