Browse thread
Why doesn't ocamlopt detect a missing ; after failwith statement?
-
Richard Jones
- Nicolas Cannasse
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2004-11-25 (21:11) |
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