fsprojects / FSharpLint

Lint tool for F#
https://fsprojects.github.io/FSharpLint/
MIT License
300 stars 73 forks source link

Workaround for NoPartialFuncs bug #682

Closed webwarrior-ws closed 5 months ago

webwarrior-ws commented 5 months ago

Workaround for bug in FSharp.Compiler.Services that sometimes results in "FSharp.Compiler.Service cannot yet return this kind of pattern match at ..." exception.

Example code that produces the bug:

module Program =
    type Foo = Foo of string
    do
        typeof<int>.GetCustomAttributes false
        |> ignore

Issue in F# github repo: https://github.com/dotnet/fsharp/issues/8854 There is a merged PR that should address this bug: https://github.com/dotnet/fsharp/pull/16121 But at the moment latest FSharp.Compiler.Services on nuget (43.8.101) doesn't include that fix.

knocte commented 5 months ago

Issue in F# github repo: https://github.com/dotnet/fsharp/issues/8854 There is a merged PR that should address this bug: https://github.com/dotnet/fsharp/pull/16121 But at the moment latest FSharp.Compiler.Services on nuget (43.8.101) doesn't include that fix.

Why is this info not in the commit msg?

webwarrior-ws commented 5 months ago

Issue in F# github repo: dotnet/fsharp#8854 There is a merged PR that should address this bug: dotnet/fsharp#16121 But at the moment latest FSharp.Compiler.Services on nuget (43.8.101) doesn't include that fix.

Why is this info not in the commit msg?

updated commit message