From: Keiko Nakata <keiko@kurims.kyoto-u.ac.jp>
To: caml-list@inria.fr
Subject: a role of explicit type coersion
Date: Tue, 29 Nov 2005 17:32:06 +0900 (JST) [thread overview]
Message-ID: <20051129.173206.68530481.keiko@kurims.kyoto-u.ac.jp> (raw)
Hello,
it is hard for me to understand why leafs.ml does not match with leafs.mli,
while the compilation of leafs.ml alone is successful.
leafs.ml:
let rec leafs = function
`Node (a, b) -> (leafs2 a) @ (leafs2 b)
| `Var _ as l -> [l]
| others -> [others]
let leafs2 : ([> `Node of 'a * 'a ] as 'a) -> 'a list
= (leafs2 :> ([> `Node of 'a * 'a ] as 'a) -> 'a list)
leafs.mli:
val leafs2 : ([> `Node of 'a * 'a ] as 'a) -> 'a list
Best regards,
Keiko NAKATA
next reply other threads:[~2005-11-29 8:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-29 8:32 Keiko Nakata [this message]
2005-11-29 13:42 ` Keiko Nakata
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=20051129.173206.68530481.keiko@kurims.kyoto-u.ac.jp \
--to=keiko@kurims.kyoto-u.ac.jp \
--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