-
Notifications
You must be signed in to change notification settings - Fork 789
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use collection functions from FSharp.Core when possible #1210
Conversation
@@ -2028,7 +2028,7 @@ and ReportNoCandidatesError (csenv:ConstraintSolverEnv) (nUnnamedCallerArgs,nNam | |||
let errid = | |||
let suggestNamesForMissingArguments = | |||
if nReqd > nActual then | |||
let missingArgs = List.drop nReqd cmeth.AllUnnamedCalledArgs | |||
let missingArgs = List.skip nReqd cmeth.AllUnnamedCalledArgs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
List.drop
is not an exact replacement for List.skip
because it doesn't throw an exception when the list is too short. I think it's best to revert this to be on the safe side.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feel free to add an assert to List.drop
that the list is long enough
@forki If you can backout the List.drop changes then I think this is ready to go in. |
removed that drop change |
a030cdd
to
3fa05c5
Compare
OK, this can go in, I'll merge |
No description provided.