Skip to content

Wrong expression is ignored warning range #5418

@auduchinok

Description

@auduchinok
module ClassLibrary17

for i in 1 .. 10 do
    printfn ""
    printfn "" |> ignore
    123

screen shot 2018-07-28 at 17 29 31

The result of this expression has type 'int' and is implicitly ignored.
Consider using 'ignore' to discard this value explicitly, e.g. 'expr |> ignore', or 'let' to bind the result to a name, e.g. 'let result = expr'.

Metadata

Metadata

Labels

Area-Diagnosticsmistakes and possible improvements to diagnosticsBugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.

Type

Projects

Status

New

Relationships

None yet

Development

No branches or pull requests

Issue actions