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 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id CEEA0BC69 for ; Mon, 19 Feb 2007 14:47:40 +0100 (CET) Received: from sark4.cc.gatech.edu (sark4.cc.gatech.edu [130.207.7.19]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l1JDld4A009660 for ; Mon, 19 Feb 2007 14:47:40 +0100 Received: from gaia.cc.gatech.edu (gaia.cc.gatech.edu [130.207.3.8]) by sark4.cc.gatech.edu (8.13.6/8.12.8) with ESMTP id l1JDlcnl007310 for ; Mon, 19 Feb 2007 08:47:38 -0500 (EST) Received: (from fernando@localhost) by gaia.cc.gatech.edu (8.13.6/8.12.8) id l1JDlcfV027760; Mon, 19 Feb 2007 08:47:38 -0500 (EST) Date: Mon, 19 Feb 2007 08:47:38 -0500 From: Fernando Alegre To: caml-list@inria.fr Subject: empty type Message-ID: <20070219134738.GA26859@gaia.cc.gatech.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Miltered: at discorde with ID 45D9AA7B.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; bug:01 haskell:01 notation:01 defined:02 expression:02 caml:02 objective:02 unit:03 unit:03 fernando:06 fernando:06 alegre:08 gatech:08 i'm:09 acceptable:09 Hi, I think this is a bug, but I'm not sure. I mistakenly defined type e using Haskell notation, and it was accepted. However, it shadowed the unit type. Can someone confirm whether this should be acceptable or not? Thanks. Objective Caml version 3.09.2 # type e = ();; type e = () # type t = A of e | B of unit;; type t = A of e | B of unit # A();; - : t = A () # B();; This expression has type e but is here used with type unit Fernando