-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Given that results aren't "noisy" like exceptions it would be useful to get a warning/error if you fail to use one. As an example, the following code should result in some sort of warning:
// some code
MethodThatReturnsAResult();
// some more codeFrom here there's two ways I can see this going: you only need to read the Result at all to shut up the analyzer
// some code
var weNeveDoAnythingWithThis = MethodThatReturnsAResult();
// some more codeOr you actually have to do something with the variable it's assigned to, and to explicitly ignore it you would need to use a discard
// some code
_ = MethodThatReturnsAResult();
// some more codeMetadata
Metadata
Assignees
Labels
No labels