Skip to content

Commit cff1922

Browse files
authored
Merge pull request #9562 from dotnet/merges/master-to-release/dev16.7
Merge master to release/dev16.7
2 parents 2f202ef + 5f8a77b commit cff1922

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/fsharp/pars.fsy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2702,7 +2702,7 @@ localBinding:
27022702
let mRhs = expr.Range
27032703
let optReturnType = $4
27042704
let bindingBuilder, mBindLhs = $3
2705-
let localBindingRange = unionRanges (rhs2 parseState 3 5) mRhs
2705+
let localBindingRange = unionRanges (rhs2 parseState 1 5) mRhs
27062706
let localBindingBuilder =
27072707
(fun attrs vis mLetKwd ->
27082708
let mWhole = unionRanges mLetKwd mRhs
@@ -2711,7 +2711,7 @@ localBinding:
27112711
localBindingRange, localBindingBuilder }
27122712

27132713
| opt_inline opt_mutable bindingPattern opt_topReturnTypeWithTypeConstraints EQUALS error
2714-
{ let mWhole = rhs2 parseState 3 5
2714+
{ let mWhole = rhs2 parseState 1 5
27152715
let mRhs = rhs parseState 5
27162716
let optReturnType = $4
27172717
let bindingBuilder, mBindLhs = $3
@@ -2726,7 +2726,7 @@ localBinding:
27262726
| opt_inline opt_mutable bindingPattern opt_topReturnTypeWithTypeConstraints recover
27272727
{ if not $5 then reportParseErrorAt (rhs parseState 5) (FSComp.SR.parsUnexpectedEndOfFileDefinition())
27282728
let optReturnType = $4
2729-
let mWhole = match optReturnType with None -> rhs parseState 3 | Some _ -> rhs2 parseState 3 4
2729+
let mWhole = rhs2 parseState 1 (match optReturnType with None -> 3 | _ -> 4)
27302730
let mRhs = mWhole.EndRange // zero-width range at end of last good token
27312731
let bindingBuilder, mBindLhs = $3
27322732
let localBindingBuilder =

0 commit comments

Comments
 (0)