Skip to content

Commit

Permalink
Fix wild self id pat range (#8635)
Browse files Browse the repository at this point in the history
  • Loading branch information
auduchinok authored Feb 28, 2020
1 parent eafbba9 commit 808996b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fsharp/pars.fsy
Original file line number Diff line number Diff line change
Expand Up @@ -1942,8 +1942,8 @@ atomicPatternLongIdent:
| pathOp { (None,$1) }
| access UNDERSCORE DOT pathOp {
if not (parseState.LexBuffer.SupportsFeature LanguageFeature.SingleUnderscorePattern) then
raiseParseErrorAt (rhs parseState 2) (FSComp.SR.parsUnexpectedSymbolDot())
let (LongIdentWithDots(lid,dotms)) = $4 in (Some($1),LongIdentWithDots(ident("_",rhs parseState 1)::lid, rhs parseState 2::dotms))
raiseParseErrorAt (rhs parseState 3) (FSComp.SR.parsUnexpectedSymbolDot())
let (LongIdentWithDots(lid,dotms)) = $4 in (Some($1),LongIdentWithDots(ident("_",rhs parseState 2)::lid, rhs parseState 3::dotms))
}
| access pathOp { (Some($1), $2) }

Expand Down

0 comments on commit 808996b

Please sign in to comment.