Skip to content

Commit

Permalink
Fix SynExpr.Do range (#10365)
Browse files Browse the repository at this point in the history
  • Loading branch information
auduchinok authored Oct 30, 2020
1 parent 71c3736 commit bd4f2d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/fsharp/pars.fsy
Original file line number Diff line number Diff line change
Expand Up @@ -3361,10 +3361,10 @@ declExpr:
//reportParseErrorAt (match hwlb with (BindingSetPreAttrs(m, _, _, _, _)) -> m) (FSComp.SR.parsErrorInReturnForLetIncorrectIndentation())
mkLocalBindings (unionRanges m (rhs parseState 3), hwlb, arbExpr("declExpr3", (rhs parseState 3))) }

| hardwhiteDoBinding %prec expr_let
| hardwhiteDoBinding %prec expr_let
{ let e = snd $1
SynExpr.Do (e, e.Range) }
SynExpr.Do (e, unionRanges (rhs parseState 1).StartRange e.Range) }

| anonMatchingExpr %prec expr_function
{ $1 }

Expand Down

0 comments on commit bd4f2d5

Please sign in to comment.