Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Ocaml 3.01: bug or feature?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Anton Moscal <msk@p...>
Subject: [Caml-list] Ocaml 3.01: bug or feature?
Hello!

When I try to compile the following program by Ocaml 3.01:

let f ?(a=1) b = a + b
let (+>) x f = f x
let _ = 1 +> f

I get following message:

File "bug.ml", line 3, characters 13-14: 
This expression has type ?a:int -> int -> int 
but is here used with type 'a ->'b

With Ocaml 3.00 all worked fine.

Regards, 
Anton Moscal
-------------------
To unsubscribe, mail caml-list-request@inria.fr.  Archives: http://caml.inria.fr