From 808996b3d746edd86b7e8296a5ebf1c5f05505bf Mon Sep 17 00:00:00 2001 From: Eugene Auduchinok Date: Fri, 28 Feb 2020 03:26:42 +0300 Subject: [PATCH] Fix wild self id pat range (#8635) --- src/fsharp/pars.fsy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fsharp/pars.fsy b/src/fsharp/pars.fsy index 66ee0bd792e..278ad39154e 100644 --- a/src/fsharp/pars.fsy +++ b/src/fsharp/pars.fsy @@ -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) }