From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 211AD7EF29 for ; Fri, 18 Dec 2015 11:07:50 +0100 (CET) IronPort-PHdr: 9a23:UnCqvxw5HsqFpGvXCy+O+j09IxM/srCxBDY+r6Qd0egXIJqq85mqBkHD//Il1AaPBtWFraocw8Pt8IneGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2WVTerzWI4CIIHV2nbEwudrqzQtaapv/0/t7x0qWbWx9Piju5bOE6BzSNhiKViPMrh5B/IL060BrDrygAUe1XwWR1OQDbxE6ktY/jtKJkpi9ZvvZk889bTY37eb45RPpWFmcIKWcwsenmslH8TQqT6zNIVmgRuh5QHFKYqhf3QsGi4WPBquNh1XzCboXNRrcuVGH64g== Authentication-Results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=leo@lpw25.net; spf=None smtp.mailfrom=leo@lpw25.net; spf=None smtp.helo=postmaster@out1-smtp.messagingengine.com Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of leo@lpw25.net) identity=pra; client-ip=66.111.4.25; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="leo@lpw25.net"; x-sender="leo@lpw25.net"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of leo@lpw25.net) identity=mailfrom; client-ip=66.111.4.25; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="leo@lpw25.net"; x-sender="leo@lpw25.net"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@out1-smtp.messagingengine.com) identity=helo; client-ip=66.111.4.25; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="leo@lpw25.net"; x-sender="postmaster@out1-smtp.messagingengine.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0BvAACX2nNWmxkEb0JdhHm/UYYNAoE4PBABAQEBAQEBARABAQEBAQYLCwkhLoItgggBAQQnGToPC0YsK4hIqluFWo0SAQEBBwEBAQEBGAaLVIUngn+BGo4ziFGqbjmCUoF7IDSFEQEBAQ X-IPAS-Result: A0BvAACX2nNWmxkEb0JdhHm/UYYNAoE4PBABAQEBAQEBARABAQEBAQYLCwkhLoItgggBAQQnGToPC0YsK4hIqluFWo0SAQEBBwEBAQEBGAaLVIUngn+BGo4ziFGqbjmCUoF7IDSFEQEBAQ X-IronPort-AV: E=Sophos;i="5.20,445,1444687200"; d="scan'208";a="157569209" Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Dec 2015 11:07:49 +0100 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 7F5A220DB6 for ; Fri, 18 Dec 2015 05:07:44 -0500 (EST) Received: from web3 ([10.202.2.213]) by compute6.internal (MEProxy); Fri, 18 Dec 2015 05:07:44 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=lpw25.net; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=WLPya4SvLIl1M92FNecJub/zGsA=; b=B5WR73 3W9PwlRCqk8c+QQDSDYcGF4uaymezGNVciGPLbBspyy14bvVncehpqM3RxPDX9lo J5IdhA2D4cjNZxbGbLsv8XVJYJ95G6xOoNPvU/SfnIzaOg/AHwVJuJtgYIX6iJ7I 7UUk/hGhf5np3Hr82dC0jMMU8xUqiptjiEks8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=WLPya4SvLIl1M92 FNecJub/zGsA=; b=XV/5dUhi7Ef1o4OcqOUyBO6yACkhdhD9U+jf2KR0AGqCcnu mAzT0NkXjCY1Qqx3RQ/Yq2hWw4XQz584HrMAgPhWCRxkHBAfYK/0r+rvSdGTz0qA IjkO1WFi2KEkvzJl+un5NIPas6j2SG93xR9C6qCy4cLn4NYEtG2zrs05yuSU= Received: by web3.nyi.internal (Postfix, from userid 99) id 4F34110F738; Fri, 18 Dec 2015 05:07:44 -0500 (EST) Message-Id: <1450433264.2682694.470896145.4144D923@webmail.messagingengine.com> X-Sasl-Enc: lTYvUujnDv+gAxSoqOHXr3Ct/lyaTi5Ce9/mtcK8QEuN 1450433264 From: Leo White To: caml-list@inria.fr MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-a93c17cb Date: Fri, 18 Dec 2015 05:07:44 -0500 In-Reply-To: <5673CF72.4030808@tu-berlin.de> References: <5673CF72.4030808@tu-berlin.de> Subject: Re: [Caml-list] polymorphic methods Hi, This probably constitutes a bug, seeing as the problem only occurs when using a type alias: # class foo = object method f : 'a 'b. (< x: 'b; ..> as 'a) -> 'b = assert false end;; class foo : object method f : < x : 'b; .. > -> 'b end # type ('a, 'b) f_arg = < x : 'b; .. > as 'a;; type ('a, 'b) f_arg = 'a constraint 'a = < x : 'b; .. > # class foo = object method f : 'a 'b. ('a, 'b) f_arg -> 'b = assert false end;; Characters 30-76: method f : 'a 'b. ('a, 'b) f_arg -> 'b = assert false ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Error: This expression has type 'a 'b. (< x : 'b; .. > as 'a, 'b) f_arg -> 'b but an expression was expected of type 'c 'b. (< x : 'b; .. > as 'c, 'b) f_arg -> 'b The type variable 'd occurs inside 'd Regards, Leo