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
Parser: add recovery for unfinished match clauses (#10872)
* Diagnostics: add production rule index
* Parser: fix recovery for unfinished match clause
Fixes recovery for missing right hand sides:
```
match () with
| x
```
* Add tests
* Add recovery near to next clause
* Restore indent in test data
* Update desktop test baselines
* Update FSharpQA test baselines
* Fix recovered patterns ranges
* Try to fix Desktop test suite
* Update surface area
* Better diagnostics
* Try to fix Desktop test suite
* Fix tests
* Simplify test
* Add more tests
* Disable failing test
neg104.fs(23,9,23,22): typecheck error FS0025: Incomplete pattern matches on this expression.
29
29
30
-
neg104.fs(26,9,26,22): typecheck error FS0025: Incomplete pattern matches on this expression.
31
-
32
30
neg104.fs(32,21,32,26): typecheck error FS0003: This value is not a function and cannot be applied.
33
31
34
32
neg104.fs(35,9,35,18): typecheck error FS0748: This construct may only be used within computation expressions. To return a value from an ordinary function simply write the expression without 'return'.
Copy file name to clipboardExpand all lines: tests/fsharp/typecheck/sigs/neg80.vsbsl
-4Lines changed: 0 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,3 @@
2
2
neg80.fsx(79,5,79,6): parse error FS0010: Unexpected symbol '|' in pattern matching
3
3
4
4
neg80.fsx(79,5,79,6): parse error FS0010: Unexpected symbol '|' in pattern matching
5
-
6
-
neg80.fsx(79,6,79,6): typecheck error FS0001: All branches of a pattern match expression must return values implicitly convertible to the type of the first branch, which here is 'string'. This branch returns a value of type 'unit'.
7
-
8
-
neg80.fsx(76,11,76,13): typecheck error FS0025: Incomplete pattern matches on this expression. For example, the value 'Horizontal (_, _)' may indicate a case not covered by the pattern(s).
0 commit comments