Skip to content

Commit

Permalink
Reneable warnexpressions tests (#7331)
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinRansom authored and cartermp committed Aug 2, 2019
1 parent cf19605 commit 90f03ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/fsharp/Compiler/ErrorMessages/WarnExpressionTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ let changeX() =
(6, 5, 6, 15)
"The result of this equality expression has type 'bool' and is implicitly discarded. Consider using 'let' to bind the result to a name, e.g. 'let result = expression'."

// [<Test>] // Disable this test until we refactor tcImports and tcGlobals
[<Test>]
let ``Warn If Discarded In List``() =
CompilerAssert.TypeCheckWithErrorsAndOptions
[| "--langversion:4.6" |]
Expand All @@ -127,7 +127,7 @@ let view model dispatch =
"This expression returns a value of type 'int' but is implicitly discarded. Consider using 'let' to bind the result to a name, e.g. 'let result = expression'. If you intended to use the expression as a value in the sequence then use an explicit 'yield'."
|]

// [<Test>] // Disable this test until we refactor tcImports and tcGlobals
[<Test>]
let ``Warn If Discarded In List 2``() =
CompilerAssert.TypeCheckWithErrorsAndOptions
[| "--langversion:4.6" |]
Expand All @@ -154,7 +154,7 @@ let view model dispatch =
"This expression returns a value of type 'int list' but is implicitly discarded. Consider using 'let' to bind the result to a name, e.g. 'let result = expression'. If you intended to use the expression as a value in the sequence then use an explicit 'yield!'."
|]

// [<Test>] // Disable this test until we refactor tcImports and tcGlobals
[<Test>]
let ``Warn If Discarded In List 3``() =
CompilerAssert.TypeCheckWithErrorsAndOptions
[| "--langversion:4.6" |]
Expand Down

0 comments on commit 90f03ee

Please sign in to comment.