From: Oliver Bandel <oliver@first.in-berlin.de>
To: caml-list@inria.fr
Subject: [Caml-list] "type foo = Foo | Bar | Baz" vs. "type foo = Foo | Baz | Bar"
Date: Thu, 10 Mar 2016 20:47:55 +0100 [thread overview]
Message-ID: <20160310204755.Horde.BihjgSho6HOkUTT_3QHgeTX@webmail.in-berlin.de> (raw)
Hello,
I got an error message when the ml-file and the mli-file
have a sum-type, where the order of the type definitionis different.
This seems to be new, at least I did not found such an error message before.
===========================================================================
File "foo.ml", line 1:
Error: The implementation foo.ml does not match the interface foo.cmi:
Type declarations do not match:
type foo = Foo | Bar | Baz
is not included in
type foo = Foo | Baz | Bar
File "foo.ml", line 1, characters 0-26: Actual declaration
Fields number 2 have different names, Bar and Baz.
===========================================================================
I looked for warning-/error-codes, to look, if checking the order
of the definition of a type can be switched on and off.
But I didn't found a number, that I can use with -w-switch.
Any ideas on this?
Ciao,
Oliver
next reply other threads:[~2016-03-10 19:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-10 19:47 Oliver Bandel [this message]
2016-03-10 19:50 ` David Allsopp
2016-03-10 20:59 ` Oliver Bandel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160310204755.Horde.BihjgSho6HOkUTT_3QHgeTX@webmail.in-berlin.de \
--to=oliver@first.in-berlin.de \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox