Version française
Home     About     Download     Resources     Contact us    
Browse thread
generalization and let module
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Julien SIGNOLES <julien.signoles@c...>
Subject: generalization and let module
Hello all,

Just a single question: why is 'f' not generalizable in the following
example? I'm not able to find an example using any "let module" and
breaking the type safety.

=====
module M = struct end
let f = let module N = M in fun x -> x
=====

--
Julien