fsharp-hedgehog icon indicating copy to clipboard operation
fsharp-hedgehog copied to clipboard

Warn if some value is unused

Open TysonMN opened this issue 2 years ago • 2 comments

There is a bug in F# that prevents this project from turning on warnings for unused values.

  property {
    let! i = Gen.alpha // The value 'i' is reported as unused
    where true
    return i = i
  }

TysonMN avatar Jul 18 '22 12:07 TysonMN

Blocked by F# bug https://github.com/dotnet/fsharp/issues/10167

TysonMN avatar Jul 18 '22 13:07 TysonMN

I guess you could rename i to _i to work around it.

cmeeren avatar Nov 05 '22 21:11 cmeeren