caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] strange type error with -principal
@ 2017-08-18 14:09 Alexey Egorov
  2017-08-18 14:36 ` Gabriel Scherer
  0 siblings, 1 reply; 4+ messages in thread
From: Alexey Egorov @ 2017-08-18 14:09 UTC (permalink / raw)
  To: caml users

Hello,

I'm getting very confusing error when compiling with -principal:

> Error: This expression has type int op
>       but an expression was expected of type 'a
>       This instance of int is ambiguous:
>       it would escape the scope of its equation

What is the "instance of int"?

Here is the code - https://pastebin.com/T74haahx
I'm mostly confused by the fact that changing pattern from (op, idx)
to simple value binding eliminates this error.

Thanks!

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

end of thread, other threads:[~2017-08-18 15:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-18 14:09 [Caml-list] strange type error with -principal Alexey Egorov
2017-08-18 14:36 ` Gabriel Scherer
2017-08-18 15:23   ` Alexey Egorov
2017-08-18 15:33     ` Gabriel Scherer

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