-
Notifications
You must be signed in to change notification settings - Fork 1.2k
gestion d'un ';' bizarre #4627
Copy link
Copy link
Closed
Description
Original bug ID: 4627
Reporter: @zoggy
Status: closed (set by @zoggy on 2013-08-05T09:04:45Z)
Resolution: won't fix
Priority: low
Severity: minor
Version: 3.11.0+beta
Category: ~DO NOT USE (was: OCaml general)
Related to: #6327 #6828 #6961
Bug description
A votre avis, comment ce code doit-il être parsé ?
let f x =
let y = x + 1 in
if y > 2 then
begin
prerr_endline "coucou"
end;
prerr_endline "coucou bis";
(* coucou *) ;
y
Le code est bien parsé et termine avec
Line 10, chars 4-5: Unbound value y
Au contraire, le code suivant
let f x = ignore(x) ; (* coucou *) ; x
ne parse pas, le ';' après le commentaire provoquant une erreur:
Line 1, chars 35-36: Syntax error
Reactions are currently unavailable