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=2.6 required=5.0 tests=AWL,RCVD_NUMERIC_HELO, SPF_SOFTFAIL,UNPARSEABLE_RELAY autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id C4988BBB7 for ; Wed, 28 Jan 2009 14:52:47 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AngCAEnyf0mEqOABmWdsb2JhbACJGYpYHAEBAQEBCAsKBxFNtwiFRwaCTg X-IronPort-AV: E=Sophos;i="4.37,338,1231110000"; d="scan'208";a="34388817" Received: from oxalide-out.extra.cea.fr ([132.168.224.1]) by mail4-smtp-sop.national.inria.fr with ESMTP; 28 Jan 2009 14:52:47 +0100 Received: from nephilia.intra.cea.fr (nephilia.intra.cea.fr [132.166.88.33]) by oxalide.extra.cea.fr (8.14.2/8.14.2/CEAnet-Internet-out-1.2) with ESMTP id n0SDp95Z013525 for ; Wed, 28 Jan 2009 14:51:10 +0100 Received: from muguet1.intra.cea.fr (muguet1.intra.cea.fr [132.166.192.6]) by nephilia.intra.cea.fr (8.13.8/8.13.8) with ESMTP id n0SDqk4Q029858 for ; Wed, 28 Jan 2009 14:52:46 +0100 (envelope-from julien.signoles@cea.fr) Received: from levau.intra.cea.fr (levau.intra.cea.fr [132.166.88.52]) by muguet1.intra.cea.fr (8.13.8/8.13.8/CEAnet-Intranet-out-1.1) with ESMTP id n0SDqk7T002244 for ; Wed, 28 Jan 2009 14:52:46 +0100 Received: from LAXA.intra.cea.fr ([132.166.64.44]) by levau.intra.cea.fr with Microsoft SMTPSVC(6.0.3790.3959); Wed, 28 Jan 2009 14:52:45 +0100 Received: from 132.166.135.80 ([132.166.135.80]) by LAXA.intra.cea.fr ([132.166.64.53]) with Microsoft Exchange Server HTTP-DAV ; Wed, 28 Jan 2009 13:52:45 +0000 Received: from is005140 by LAXA.intra.cea.fr; 28 Jan 2009 14:53:48 +0100 Subject: Warning wished From: Julien SIGNOLES To: caml-list Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: CEA LIST Date: Wed, 28 Jan 2009 14:53:48 +0100 Message-Id: <1233150828.7199.213.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 X-OriginalArrivalTime: 28 Jan 2009 13:52:45.0915 (UTC) FILETIME=[B2D012B0:01C9814F] X-Spam: no; 0.00; signoles:01 signoles:01 bug:01 emit:01 cea:01 unit:03 let:03 let:03 feature:09 body:89 julien:12 julien:12 should:13 type:14 does:14 Hello, Is it a bug or a well-known feature that the above program does not emit a warning (because "f x" should have type unit in the body of "g") ? ===== let f x = x let g x = f x; 1 (* let _ = g 2 *) ==== Best regards, Julien Signoles