Skip to content

Commit a794e88

Browse files
committed
Fix failing unit tests.
1 parent f9eb40f commit a794e88

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

tests/fsharp/typecheck/sigs/neg59.bsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ neg59.fs(49,15,49,27): typecheck error FS3090: An if/then/else expression may no
2121

2222
neg59.fs(56,15,56,27): typecheck error FS3090: An if/then/else expression may not be used within queries. Consider using either an if/then expression, or use a sequence expression instead.
2323

24-
neg59.fs(63,15,63,27): typecheck error FS3163: 'match' expressions may not be used in queries
24+
neg59.fs(63,15,63,20): typecheck error FS3163: 'match' expressions may not be used in queries
2525

26-
neg59.fs(69,15,69,27): typecheck error FS3163: 'match' expressions may not be used in queries
26+
neg59.fs(69,15,69,20): typecheck error FS3163: 'match' expressions may not be used in queries
2727

2828
neg59.fs(76,15,76,18): typecheck error FS3146: 'try/with' expressions may not be used in queries
2929

tests/fsharpqa/Source/Conformance/Expressions/DataExpressions/QueryExpressions/E_MismatchedConditionalBranches01.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// #Conformance #DataExpressions #Query #Regression
22
// DevDiv:196007, this used to throw
3-
//<Expects status="error" span="(8,13-8,25)" id="FS3163">'match' expressions may not be used in queries$</Expects>
3+
//<Expects status="error" span="(8,13-8,18)" id="FS3163">'match' expressions may not be used in queries$</Expects>
44

55
let x =
66
query {

tests/fsharpqa/Source/Conformance/Expressions/DataExpressions/QueryExpressions/E_MismatchedConditionalBranches02.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// #Conformance #DataExpressions #Query #Regression
2-
//<Expects status="error" span="(6,14-6,26)" id="FS3163">'match' expressions may not be used in queries$</Expects>
2+
//<Expects status="error" span="(6,14-6,19)" id="FS3163">'match' expressions may not be used in queries$</Expects>
33

44
let q10 =
55
query { for i in [1..10] do

tests/service/ParserTests.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ match () with
7676
"""
7777

7878
match getSingleExprInModule parseResults with
79-
| SynExpr.Match (clauses=[ SynMatchClause (resultExpr=SynExpr.ArbitraryAfterError _) ]) -> ()
79+
| SynExpr.Match (clauses=[ SynMatchClause (resultExpr=SynExpr.ArbitraryAfterError _); _ ]) -> ()
8080
| _ -> failwith "Unexpected tree"
8181

8282
[<Test>]
@@ -88,7 +88,7 @@ match () with
8888
"""
8989

9090
match getSingleExprInModule parseResults with
91-
| SynExpr.Match (clauses=[ SynMatchClause (resultExpr=SynExpr.ArbitraryAfterError _) ]) -> ()
91+
| SynExpr.Match (clauses=[ SynMatchClause (SynPat.Or _, _, _, SynExpr.Const _, _, _) ]) -> ()
9292
| _ -> failwith "Unexpected tree"
9393

9494
[<Test>]

0 commit comments

Comments
 (0)