From: Aaron Bohannon <bohannon@cis.upenn.edu>
To: caml-list@yquem.inria.fr
Subject: annotations and type-checking
Date: Tue, 28 Jul 2009 17:47:25 -0400 [thread overview]
Message-ID: <c413fcb70907281447l1f6c3d0y21c3fa024ac45791@mail.gmail.com> (raw)
Why do the first two programs type-check but the thrid one does not?
let f x = x in (f true, f 3);;
let f (x : 'a) : 'a = x in (f true);;
let f (x : 'a) : 'a = x in (f true, f 3);;
- Aaron
next reply other threads:[~2009-07-28 21:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-28 21:47 Aaron Bohannon [this message]
2009-07-28 23:28 ` [Caml-list] " Jon Harrop
2009-07-28 23:04 ` Philippe
2009-07-29 5:38 ` Johannes Kanig
2009-07-29 7:40 ` Mark Shinwell
2009-07-29 13:41 ` Aaron Bohannon
2009-07-29 14:39 ` Jacques Garrigue
2009-07-29 16:50 ` Aaron Bohannon
2009-07-29 19:01 ` Jon Harrop
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=c413fcb70907281447l1f6c3d0y21c3fa024ac45791@mail.gmail.com \
--to=bohannon@cis.upenn.edu \
--cc=caml-list@yquem.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