From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 75B56BC69 for ; Tue, 1 May 2007 14:59:14 +0200 (CEST) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.177]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l41CxEff011873 for ; Tue, 1 May 2007 14:59:14 +0200 Received: from [141.84.136.30] (helo=[152.78.153.246]) by mrelayeu.kundenserver.de (node=mrelayeu7) with ESMTP (Nemesis), id 0ML2xA-1Hirwn2aI8-0002bX; Tue, 01 May 2007 14:59:13 +0200 Message-ID: <4637399F.6010103@functionality.de> Date: Tue, 01 May 2007 13:59:11 +0100 From: Thomas Fischbacher User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20060607 Debian/1.7.12-1.2 X-Accept-Language: en MIME-Version: 1.0 To: caml-list@inria.fr Subject: Is this a bug? Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX18cmLQQGAQ6CswmgvwGzNSPg1jpX5vlCPVF6Bd 2aFq0Ejrjd1bw1KaGeUiFQI6oHAVG6nHtStl3GVxTmuxqJThhw zE79Rbz5Tz9hIYQbWpj6w== X-Miltered: at concorde with ID 463739A2.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; bug:01 bool:01 failwith:01 foo:01 val:01 int:01 string:02 string:02 types:03 let:03 let:03 opt:05 opt:05 restriction:05 restriction:05 If we look at the following piece of code: ===> type dof_region_spec = (string * bool * (int option array)) array;; type opt_field_restriction = dof_region_spec option;; let make_field ?(name="Field") ?restriction ?constant_value mwe = let restriction:opt_field_restriction = restriction in failwith "FOO";; <=== ...then make_field types as: ===> val make_field : ?name:string -> ?restriction: -> ?constant_value:'a -> 'b -> 'c <=== The actually should not show up here. What is going on? -- best regards, Thomas Fischbacher tf@functionality.de