You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Je suis pas super chaud pour changer la grammaire, on risque toujours l'incompatibilite.
Est-ce que ca pose vraiment un probleme en pratique ? Ca date au moins de 3.06, et
peut-etre meme de 3.00...
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
The text was updated successfully, but these errors were encountered: