You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/fsharp/Compiler/ErrorMessages/WarnExpressionTests.fs
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -105,7 +105,7 @@ let changeX() =
105
105
(6,5,6,15)
106
106
"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'."
107
107
108
-
// [<Test>] // Disable this test until we refactor tcImports and tcGlobals
108
+
[<Test>]
109
109
let``Warn If Discarded In List``()=
110
110
CompilerAssert.TypeCheckWithErrorsAndOptions
111
111
[|"--langversion:4.6"|]
@@ -127,7 +127,7 @@ let view model dispatch =
127
127
"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'."
128
128
|]
129
129
130
-
// [<Test>] // Disable this test until we refactor tcImports and tcGlobals
130
+
[<Test>]
131
131
let``Warn If Discarded In List 2``()=
132
132
CompilerAssert.TypeCheckWithErrorsAndOptions
133
133
[|"--langversion:4.6"|]
@@ -154,7 +154,7 @@ let view model dispatch =
154
154
"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!'."
155
155
|]
156
156
157
-
// [<Test>] // Disable this test until we refactor tcImports and tcGlobals
0 commit comments