We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent44514f3 commitf0e945cCopy full SHA for f0e945c
src/fsharp/TypeChecker.fs
@@ -4793,8 +4793,9 @@ and CrackStaticConstantArgs cenv env tpenv (staticParameters: Tainted<ProvidedPa
4793
if not otherArgs.IsEmpty then
4794
error (Error(FSComp.SR.etBadUnnamedStaticArgs(),m))
4795
4796
+ let indexedStaticParameters = staticParameters |> Array.toList |> List.indexed
4797
for (n,_) in namedArgs do
- matchstaticParameters |> Array.toList |> List.mapi (fun j x -> (j,x)) |> List.filter (fun (j,sp) -> j >= unnamedArgs.Length && n.idText = sp.PUntaint((fun sp -> sp.Name), m)) with
4798
+ matchindexedStaticParameters |> List.filter (fun (j,sp) -> j >= unnamedArgs.Length && n.idText = sp.PUntaint((fun sp -> sp.Name), m)) with
4799
| [] ->
4800
if staticParameters |> Array.exists (fun sp -> n.idText = sp.PUntaint((fun sp -> sp.Name), n.idRange)) then
4801
error (Error(FSComp.SR.etStaticParameterAlreadyHasValue n.idText,n.idRange))