Unused binding warning isn't reported for recursive binding in a type
See original GitHub issueIssue Analytics
- State:
- Created a year ago
- Comments:14 (14 by maintainers)
Top Results From Across the Web
In Ocaml, how do I avoid an unused variable warning if ...
Any binding that starts with _ won't be in scope and won't give you unused variable warnings. Share. Share a link to this...
Read more >Unused value warning on a recursive value that is used #7429
produces an unused value warning for x if it is not used in the rest of the program. However, the binding to x...
Read more >Warning or error should be raised when alternative ...
In the case of Issue #3831, the let binding itself is not even recursive, but the body calls a constructor, which then indirectly...
Read more >4.8. Warnings and sanity-checking
Report any function definitions (and local bindings) which are unused. For top-level functions, the warning is only given if the binding is not...
Read more >4.8. Warnings and sanity-checking
Report any function definitions (and local bindings) which are unused. For top-level functions, the warning is only given if the binding is not...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Even just this is a repro:
Another difference is now
FSharpSymbol
produced for such a function returns different things:mfv.DeclaringEntity
returns the containing type, previously it didn’tmfv.IsModuleValueOrMember
istrue
(I think it has beenfalse
previously)