caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] error in Ocaml 4.02 and not error in Ocaml 4.05
@ 2019-06-24 21:09 Michel Levy
  2019-06-24 21:14 ` "António Monteiro (anmonteiro)"
  2019-06-25  5:17 ` Basile Starynkevitch
  0 siblings, 2 replies; 3+ messages in thread
From: Michel Levy @ 2019-06-24 21:09 UTC (permalink / raw)
  To: OCaml List

In "my" ocaml version, 4.05, the line A of {lit : literal; mutable scope
: int} of the type declaration

type ab_literal =
  | A of {lit : literal; mutable scope : int}
  | B of literal;;

is correct.

but in the ocaml version 4.02, the line A of {lit : literal; mutable
scope : int} is a syntax error.

Where can I find this error in the documentation and/or the 
announcement of this syntax change ?

-- 
courriel : michel.levy1948@gmail.com
mobile : 0659134253 web : http://michel.levy.imag.free.fr

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-06-25  5:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-24 21:09 [Caml-list] error in Ocaml 4.02 and not error in Ocaml 4.05 Michel Levy
2019-06-24 21:14 ` "António Monteiro (anmonteiro)"
2019-06-25  5:17 ` Basile Starynkevitch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).