caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Warning wished
@ 2009-01-28 13:53 Julien SIGNOLES
  2009-01-28 14:07 ` Re : [Caml-list] " Matthieu Wipliez
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Julien SIGNOLES @ 2009-01-28 13:53 UTC (permalink / raw)
  To: caml-list

Hello,

Is it a bug or a well-known feature that the above program does not emit
a warning (because "f x" should have type unit in the body of "g") ?

=====
let f x = x
let g x = f x; 1
(* let _ = g 2 *)
====

Best regards,
Julien Signoles


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

end of thread, other threads:[~2009-01-28 20:57 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-28 13:53 Warning wished Julien SIGNOLES
2009-01-28 14:07 ` Re : [Caml-list] " Matthieu Wipliez
2009-01-28 14:24   ` Julien SIGNOLES
2009-01-28 20:56     ` Nicolas Pouillard
2009-01-28 14:10 ` Dmitri Boulytchev
2009-01-28 14:28   ` Julien SIGNOLES
2009-01-28 14:44     ` Dmitri Boulytchev
2009-01-28 18:29       ` Frédéric van der Plancke
2009-01-28 19:08         ` Dmitri Boulytchev
2009-01-28 16:55 ` Martin Jambon

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