Version française
Home     About     Download     Resources     Contact us    
Browse thread
Why doesn't ocamlopt detect a missing ; after failwith statement?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Nicolas Cannasse <warplayer@f...>
Subject: Re: [Caml-list] Why doesn't ocamlopt detect a missing ; after failwith statement?
> All well and good, but I don't understand why it doesn't warn me about
> the missing ';' in the first case.

val failwith : string -> 'a

so failwith "error" prerr_endline "OK";

is a valid call since 'a unify with (string -> unit) -> string -> unit

Nicolas