* mysterious signature mismatch
@ 2000-11-15 15:33 Christian Lindig
2000-11-23 13:11 ` Xavier Leroy
0 siblings, 1 reply; 2+ messages in thread
From: Christian Lindig @ 2000-11-15 15:33 UTC (permalink / raw)
To: Caml Mailing List
The following code is rejected by the compiler with a signature
mismatch error. However, the signature below is the same the one
inferred by the compiler. Bug or feature?
module type A =
sig
type 'int width = 'int
type 'int bits = 'int * 'int width
end
module Aa:A =
struct
type 'int width = 'int
type 'int bits = 'int * 'int width
end
Signature mismatch: [..] Type declarations do not match:
type 'a bits = 'a * 'a width is not included in
type 'a bits = 'a * 'a width
-- Christian
--
Christian Lindig Harvard University - DEAS
lindig@eecs.harvard.edu 33 Oxford St, MD 242, Cambridge MA 02138
phone: +1 (617) 496-7157 http://www.eecs.harvard.edu/~lindig/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: mysterious signature mismatch
2000-11-15 15:33 mysterious signature mismatch Christian Lindig
@ 2000-11-23 13:11 ` Xavier Leroy
0 siblings, 0 replies; 2+ messages in thread
From: Xavier Leroy @ 2000-11-23 13:11 UTC (permalink / raw)
To: Christian Lindig, Caml Mailing List
> The following code is rejected by the compiler with a signature
> mismatch error. However, the signature below is the same the one
> inferred by the compiler. Bug or feature?
It is a bug in OCaml 3.00, which is fixed in the current working
sources.
- Xavier Leroy
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-11-25 14:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-15 15:33 mysterious signature mismatch Christian Lindig
2000-11-23 13:11 ` Xavier Leroy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox