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