From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <5764c029b688c1c0d24a2e97cd764f@gmail.com> X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 1177E7EE49 for ; Fri, 22 Feb 2013 18:49:24 +0100 (CET) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of 5764c029b688c1c0d24a2e97cd764f@gmail.com) identity=pra; client-ip=74.125.82.179; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="5764c029b688c1c0d24a2e97cd764f@gmail.com"; x-sender="5764c029b688c1c0d24a2e97cd764f@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of 5764c029b688c1c0d24a2e97cd764f@gmail.com designates 74.125.82.179 as permitted sender) identity=mailfrom; client-ip=74.125.82.179; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="5764c029b688c1c0d24a2e97cd764f@gmail.com"; x-sender="5764c029b688c1c0d24a2e97cd764f@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-we0-f179.google.com) identity=helo; client-ip=74.125.82.179; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="5764c029b688c1c0d24a2e97cd764f@gmail.com"; x-sender="postmaster@mail-we0-f179.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhcHAPqtJ1FKfVKzk2dsb2JhbABEgh0Eg2a7HoEKFg4BAQEBCQkLCRQEI4JeCAEbHAIDEhAWFhgDAgECARERAQUBFgwNCAKHewEDDwSeOIJwjDKCe4RIChknDVmIbwEFDI5pg2ADljqBHYRXiQ0/hCo X-IPAS-Result: AhcHAPqtJ1FKfVKzk2dsb2JhbABEgh0Eg2a7HoEKFg4BAQEBCQkLCRQEI4JeCAEbHAIDEhAWFhgDAgECARERAQUBFgwNCAKHewEDDwSeOIJwjDKCe4RIChknDVmIbwEFDI5pg2ADljqBHYRXiQ0/hCo X-IronPort-AV: E=Sophos;i="4.84,717,1355094000"; d="scan'208";a="3166936" Received: from mail-we0-f179.google.com ([74.125.82.179]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 22 Feb 2013 18:49:23 +0100 Received: by mail-we0-f179.google.com with SMTP id p43so733605wea.38 for ; Fri, 22 Feb 2013 09:49:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=Fatl4Bna88Fk2m3xoEr2cJlF/idXiKmbhppXVmQfe+A=; b=O+2knj5I00nVSTLyJd7Ko9IKlNcigST8IJwLwgMV5+zL//r56q7awKjDVzx+StHWSk +fdvIxWltO1SXJsqzhorO472AFGfL+wQVO3X8Ebr3fjluF9MzkZEuQfnoOGvih4TcMTQ G2gIQTxVjw8XPH8PL2K49IwDl3Kts7yyZVjZ9qdn4mNOWylCIRpnfQySPw5lgqikPMD7 Qlp6S3fvRr710qgsQZdai4NaUdeWyRe7Wi4aGPf7S6SY6OxgAI5vL3gEu0aq4l09madh ACG21oFI5/Jp55DaX8GJWiXcGmC7U1DfZaFYRz+PYHaGVFUMfZj3Dx8U5t3TAP+QnufU Hm8Q== X-Received: by 10.180.103.161 with SMTP id fx1mr114283wib.25.1361555362875; Fri, 22 Feb 2013 09:49:22 -0800 (PST) Received: from [172.27.6.173] ([213.106.240.92]) by mx.google.com with ESMTPS id ex1sm4933902wib.7.2013.02.22.09.49.21 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 22 Feb 2013 09:49:21 -0800 (PST) Message-ID: <5127AFD7.5040002@gmail.com> Date: Fri, 22 Feb 2013 17:50:15 +0000 From: Matej Kosik <5764c029b688c1c0d24a2e97cd764f@gmail.com> User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 MIME-Version: 1.0 To: OCaml Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Caml-list] strange typechecking result Hello, For one of my modules, the typechecker started to raise strange complaints. I was not able to figure out exactly why, but at least I wanted to narrow down the problem. This small program: type r1 = {l1 : unit list} and r2 = {l2 : int64 list} let rec f1 _ = () and _ r1 = f1 r1.l1 and _ r2 = f1 r2.l2 is rejected by the typechecker with a following error message: File "test.ml", line 12, characters 5-10: Error: This expression has type int64 list but an expression was expected of type unit list I do not understand why the given program was rejected. Thanks in advance for any help. -- Matej Kosik