From 64f728e71a51f46a4464c78f35473259dc7b61fb Mon Sep 17 00:00:00 2001 From: Eugene Auduchinok Date: Wed, 4 Aug 2021 09:46:11 +0300 Subject: [PATCH] Check qualifier reported types after filtering errors --- src/fsharp/service/FSharpCheckerResults.fs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fsharp/service/FSharpCheckerResults.fs b/src/fsharp/service/FSharpCheckerResults.fs index 595032400dc..a21d73a1656 100644 --- a/src/fsharp/service/FSharpCheckerResults.fs +++ b/src/fsharp/service/FSharpCheckerResults.fs @@ -542,13 +542,14 @@ type internal TypeCheckInfo not (isFunTy nenv.DisplayEnv.g ty)) |> Seq.toArray - let thereWereSomeQuals = not (Array.isEmpty quals) // filter out errors let quals = quals |> Array.filter (fun (ty,nenv,_,_) -> let denv = nenv.DisplayEnv not (isTyparTy denv.g ty && (destTyparTy denv.g ty).IsFromError)) + + let thereWereSomeQuals = not (Array.isEmpty quals) thereWereSomeQuals, quals /// obtains captured typing for the given position