caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* bizarre type
@ 2005-06-30 15:48 Julien Verlaguet
  2005-06-30 16:49 ` [Caml-list] " Andreas Rossberg
  0 siblings, 1 reply; 11+ messages in thread
From: Julien Verlaguet @ 2005-06-30 15:48 UTC (permalink / raw)
  To: caml-list

I would like to know if the following behavior is normal :

type 'a t=string ;;

# let g (x : 'a t) (y : 'a)=();;
val g : 'a t -> 'a -> unit = <fun>

# g ("hello" : int t);;
- : '_a -> unit = <fun>

I was expecting: (int -> unit).

J


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

end of thread, other threads:[~2005-07-03 12:37 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-30 15:48 bizarre type Julien Verlaguet
2005-06-30 16:49 ` [Caml-list] " Andreas Rossberg
2005-06-30 16:58   ` Julien Verlaguet
2005-06-30 17:16     ` Stephane Glondu
2005-06-30 17:24     ` Andreas Rossberg
2005-06-30 18:30   ` Julien Verlaguet
2005-06-30 19:37     ` Andreas Rossberg
2005-06-30 21:42       ` Julien Verlaguet
2005-06-30 23:57         ` Jacques Garrigue
2005-07-03 11:42         ` Damien Doligez
2005-07-03 12:37           ` Jacques Garrigue

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