caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Empty polymorphic variant set
@ 2016-11-25  8:39 Julien Blond
  2016-11-25  9:19 ` Ben Millwood
  2016-11-25  9:20 ` Julien Blond
  0 siblings, 2 replies; 14+ messages in thread
From: Julien Blond @ 2016-11-25  8:39 UTC (permalink / raw)
  To: OCaml mailing-list

[-- Attachment #1: Type: text/plain, Size: 389 bytes --]

Hi,

Let's try something :

$ ocaml
        OCaml version 4.03.0

# let _ : [] list = [];;
Characters 9-10:
  let _ : [] list = [];;

Error: Syntax error
# type empty = [];;
type empty = []
# let _ : empty list = [];;
- : empty list = []
#

Does anyone know if there is a reason to forbid the empty polymorphic
variant set in type expressions or if it's a bug ?

Regards,

-- Julien Blond

[-- Attachment #2: Type: text/html, Size: 619 bytes --]

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

end of thread, other threads:[~2016-11-25 17:12 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-25  8:39 [Caml-list] Empty polymorphic variant set Julien Blond
2016-11-25  9:19 ` Ben Millwood
2016-11-25  9:20 ` Julien Blond
2016-11-25 11:22   ` David Allsopp
2016-11-25 13:01     ` Julien Blond
2016-11-25 13:46       ` Gabriel Scherer
2016-11-25 13:52         ` Andreas Rossberg
2016-11-25 15:42           ` Markus Mottl
2016-11-25 15:46           ` Gabriel Scherer
2016-11-25 15:59             ` Yaron Minsky
2016-11-25 16:42               ` Markus Mottl
2016-11-25 17:11                 ` Gabriel Scherer
2016-11-25 16:50           ` Stephen Dolan
2016-11-25 16:59             ` Jeremy Yallop

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).