Skip to content

Commit 90f03ee

Browse files
KevinRansomcartermp
authored andcommitted
Reneable warnexpressions tests (#7331)
1 parent cf19605 commit 90f03ee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/fsharp/Compiler/ErrorMessages/WarnExpressionTests.fs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ let changeX() =
105105
(6, 5, 6, 15)
106106
"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'."
107107

108-
// [<Test>] // Disable this test until we refactor tcImports and tcGlobals
108+
[<Test>]
109109
let ``Warn If Discarded In List``() =
110110
CompilerAssert.TypeCheckWithErrorsAndOptions
111111
[| "--langversion:4.6" |]
@@ -127,7 +127,7 @@ let view model dispatch =
127127
"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'."
128128
|]
129129

130-
// [<Test>] // Disable this test until we refactor tcImports and tcGlobals
130+
[<Test>]
131131
let ``Warn If Discarded In List 2``() =
132132
CompilerAssert.TypeCheckWithErrorsAndOptions
133133
[| "--langversion:4.6" |]
@@ -154,7 +154,7 @@ let view model dispatch =
154154
"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!'."
155155
|]
156156

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

0 commit comments

Comments
 (0)