Skip to content

Commit 3a346de

Browse files
committed
update tests
1 parent 43a4c21 commit 3a346de

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

tests/FSharp.Compiler.ComponentTests/Language/ComputationExpressionTests.fs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1693,8 +1693,8 @@ let testParallel2() =
16931693
|> typecheck
16941694
|> shouldFail
16951695
|> withDiagnostics [
1696-
(Error 3350, Line 43, Col 14, Line 43, Col 48, "Feature 'Allow let! and use! type annotations without requiring parentheses' is not available in F# 9.0. Please use language version 'PREVIEW' or greater.");
1697-
(Error 3350, Line 42, Col 14, Line 42, Col 46, "Feature 'Allow let! and use! type annotations without requiring parentheses' is not available in F# 9.0. Please use language version 'PREVIEW' or greater.")
1696+
(Error 3350, Line 43, Col 48, Line 43, Col 52, "Feature 'Allow let! and use! type annotations without requiring parentheses' is not available in F# 9.0. Please use language version 'PREVIEW' or greater.");
1697+
(Error 3350, Line 42, Col 14, Line 42, Col 48, "Feature 'Allow let! and use! type annotations without requiring parentheses' is not available in F# 9.0. Please use language version 'PREVIEW' or greater.")
16981698
]
16991699

17001700
[<Fact>]
@@ -1809,8 +1809,10 @@ let testParallel2() =
18091809
|> typecheck
18101810
|> shouldFail
18111811
|> withDiagnostics [
1812-
(Error 3350, Line 41, Col 14, Line 41, Col 46, "Feature 'Allow let! and use! type annotations without requiring parentheses' is not available in F# 9.0. Please use language version 'PREVIEW' or greater.");
1813-
(Error 3350, Line 40, Col 14, Line 40, Col 41, "Feature 'Allow let! and use! type annotations without requiring parentheses' is not available in F# 9.0. Please use language version 'PREVIEW' or greater.")
1812+
(Error 3350, Line 35, Col 29, Line 35, Col 45, "Feature 'Allow let! and use! type annotations without requiring parentheses' is not available in F# 9.0. Please use language version 'PREVIEW' or greater.")
1813+
(Error 3350, Line 34, Col 14, Line 34, Col 42, "Feature 'Allow let! and use! type annotations without requiring parentheses' is not available in F# 9.0. Please use language version 'PREVIEW' or greater.")
1814+
(Error 3350, Line 42, Col 27, Line 42, Col 43, "Feature 'Allow let! and use! type annotations without requiring parentheses' is not available in F# 9.0. Please use language version 'PREVIEW' or greater.")
1815+
(Error 3350, Line 41, Col 14, Line 41, Col 40, "Feature 'Allow let! and use! type annotations without requiring parentheses' is not available in F# 9.0. Please use language version 'PREVIEW' or greater.")
18141816
]
18151817

18161818
[<Fact>]
@@ -1870,6 +1872,7 @@ if result2 <> (42, "hello") then
18701872
"""
18711873
|> withLangVersionPreview
18721874
|> asExe
1875+
|> ignoreWarnings
18731876
|> compileAndRun
18741877
|> shouldSucceed
18751878

0 commit comments

Comments
 (0)