Skip to content

Commit 836f8ab

Browse files
auduchinokbaronfel
authored andcommitted
Fix wild self id pat range (#8635)
1 parent 7171f31 commit 836f8ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fsharp/pars.fsy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1942,8 +1942,8 @@ atomicPatternLongIdent:
19421942
| pathOp { (None,$1) }
19431943
| access UNDERSCORE DOT pathOp {
19441944
if not (parseState.LexBuffer.SupportsFeature LanguageFeature.SingleUnderscorePattern) then
1945-
raiseParseErrorAt (rhs parseState 2) (FSComp.SR.parsUnexpectedSymbolDot())
1946-
let (LongIdentWithDots(lid,dotms)) = $4 in (Some($1),LongIdentWithDots(ident("_",rhs parseState 1)::lid, rhs parseState 2::dotms))
1945+
raiseParseErrorAt (rhs parseState 3) (FSComp.SR.parsUnexpectedSymbolDot())
1946+
let (LongIdentWithDots(lid,dotms)) = $4 in (Some($1),LongIdentWithDots(ident("_",rhs parseState 2)::lid, rhs parseState 3::dotms))
19471947
}
19481948
| access pathOp { (Some($1), $2) }
19491949

0 commit comments

Comments
 (0)