Skip to content

Commit

Permalink
Revert "replace List.splitAt >> fst with List.take"
Browse files Browse the repository at this point in the history
This reverts commit c4f0605.
  • Loading branch information
Vasily Kirichenko authored and Vasily Kirichenko committed Jun 5, 2018
1 parent 155f4d8 commit 2cb9693
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fsharp/SignatureConformance.fs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ type Checker(g, amap, denv, remapInfo: SignatureRepackageInfo, checkingSig) =
err(fun(x, y, z) -> FSComp.SR.ValueNotContainedMutabilityGenericParametersDiffer(x, y, z, string mtps, string ntps))
elif implValInfo.KindsOfTypars <> sigValInfo.KindsOfTypars then
err(FSComp.SR.ValueNotContainedMutabilityGenericParametersAreDifferentKinds)
elif not (sigArgInfos.Length <= implArgInfos.Length && List.forall2 (fun x y -> List.length x <= List.length y) sigArgInfos (List.truncate sigArgInfos.Length implArgInfos)) then
elif not (sigArgInfos.Length <= implArgInfos.Length && List.forall2 (fun x y -> List.length x <= List.length y) sigArgInfos (fst (List.splitAt sigArgInfos.Length implArgInfos))) then
err(fun(x, y, z) -> FSComp.SR.ValueNotContainedMutabilityAritiesDiffer(x, y, z, id.idText, string sigArgInfos.Length, id.idText, id.idText))
else
let implArgInfos = implArgInfos |> List.take sigArgInfos.Length
Expand Down

0 comments on commit 2cb9693

Please sign in to comment.