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?
- Host: GitHub
- URL: https://github.com/xandkar/fsharp-unused-values
- Owner: xandkar
- Created: 2019-10-21T14:53:35.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-28T22:22:11.000Z (almost 3 years ago)
- Last Synced: 2024-10-19T03:06:33.523Z (12 months ago)
- Language: F#
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Why are only unused parameters reported?
========================================Issue
-----
https://github.com/dotnet/fsharp/issues/7753Demo
----
```
$ 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.dllBuild 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?