caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* annotations and type-checking
@ 2009-07-28 21:47 Aaron Bohannon
  2009-07-28 23:28 ` [Caml-list] " Jon Harrop
  2009-07-29  7:40 ` Mark Shinwell
  0 siblings, 2 replies; 9+ messages in thread
From: Aaron Bohannon @ 2009-07-28 21:47 UTC (permalink / raw)
  To: caml-list

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


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

end of thread, other threads:[~2009-07-29 17:51 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-28 21:47 annotations and type-checking Aaron Bohannon
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

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