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: 6570 Reporter: ftc Assigned to:@garrigue Status: closed (set by @garrigue on 2014-09-19T01:24:04Z) Resolution: not a bug Priority: normal Severity: minor OS: OSx OS Version: 10.9.4 Version: 4.01.0 Category: -for Camlp4 use https://github.com/ocaml/camlp4/issues
Bug description
The following two lines of code seem to produce a syntax error when I wouldn't expect them to:
"
type foo = {a : string; b : int;}
Format.printf "hi";;
"
Steps to reproduce
Put two lines into a text file and run either ocaml or ocamlc on it.
Additional information
Easy fix for anyone looking for it.
type foo = {a : string; b : int;}
let _ =
Format.printf "hi";;
The text was updated successfully, but these errors were encountered:
In order to separate two phrases, you should use a double semicolon.
type foo = {a : string; b : int;};;
Format.printf "hi";;
It is allowed to omit this semicolon, but only if the next phrase
is a definition, starting with a keyword such as let, type, class,
module...
This does not apply to expressions, which must always be preceded
by a double semicolon.
Original bug ID: 6570
Reporter: ftc
Assigned to: @garrigue
Status: closed (set by @garrigue on 2014-09-19T01:24:04Z)
Resolution: not a bug
Priority: normal
Severity: minor
OS: OSx
OS Version: 10.9.4
Version: 4.01.0
Category: -for Camlp4 use https://github.com/ocaml/camlp4/issues
Bug description
The following two lines of code seem to produce a syntax error when I wouldn't expect them to:
"
type foo = {a : string; b : int;}
Format.printf "hi";;
"
Steps to reproduce
Put two lines into a text file and run either ocaml or ocamlc on it.
Additional information
Easy fix for anyone looking for it.
type foo = {a : string; b : int;}
let _ =
Format.printf "hi";;
The text was updated successfully, but these errors were encountered: