Skip to content

Commit 858e76c

Browse files
committed
Update F* parser
Just a simple range fix
1 parent 8668791 commit 858e76c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ml/FStarC_Parser_Parse.mly

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,8 @@ rawDecl:
419419
{
420420
let r = rr $loc in
421421
let lbs = focusLetBindings lbs r in
422-
if q <> Rec && List.length lbs <> 1
423-
then raise_error_text r Fatal_MultipleLetBinding "Unexpected multiple let-binding (Did you forget some rec qualifier ?)";
422+
if q <> Rec && FStarC_List.length lbs > Prims.parse_int "1"
423+
then raise_error_text (fst (nth lbs (Prims.parse_int "1"))).prange Fatal_MultipleLetBinding "Unexpected multiple let-binding (Did you forget some rec qualifier ?)";
424424
TopLevelLet(q, lbs)
425425
}
426426
| VAL c=constant

0 commit comments

Comments
 (0)