An open API service indexing awesome lists of open source software.

https://github.com/xandkar/fsharp-unused-values

Why are only unused parameters reported?
https://github.com/xandkar/fsharp-unused-values

Last synced: 7 months ago
JSON representation

Why are only unused parameters reported?

Awesome Lists containing this project

README

          

Why are only unused parameters reported?
========================================

Issue
-----
https://github.com/dotnet/fsharp/issues/7753

Demo
----
```
$ make
rm -rf bin obj
make build
make[1]: Entering directory 'fsharp-unused-values'
dotnet build
Microsoft (R) Build Engine version 16.2.32702+c4012a063 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

Restore completed in 144.31 ms for fsharp-unused-values/Foo.fsproj.
fsharp-unused-values/Program.fs(4,24): warning FS1182: The value 'unusedParameter' is unused [fsharp-unused-values/Foo.fsproj]
Foo -> fsharp-unused-values/bin/Debug/netcoreapp2.1/Foo.dll

Build succeeded.

fsharp-unused-values/Program.fs(4,24): warning FS1182: The value 'unusedParameter' is unused [fsharp-unused-values/Foo.fsproj]
1 Warning(s)
0 Error(s)
```

Why weren't `unusedFunction` and `unusedNumber` reported?