From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: poffice@blade.nagaokaut.ac.jp Delivered-To: poffice@blade.nagaokaut.ac.jp Received: from kankan.nagaokaut.ac.jp (kankan.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (Postfix) with ESMTP id 5586E19E0043 for ; Thu, 24 Dec 2015 04:03:17 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id 53942B5D867 for ; Thu, 24 Dec 2015 04:35:40 +0900 (JST) Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id 6AFA618CC7B5 for ; Thu, 24 Dec 2015 04:35:40 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 0747E12050A; Thu, 24 Dec 2015 04:35:40 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from o2.heroku.sendgrid.net (o2.heroku.sendgrid.net [67.228.50.55]) by neon.ruby-lang.org (Postfix) with ESMTPS id 67EA61204D4 for ; Thu, 24 Dec 2015 04:35:35 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.me; h=from:to:references:subject:mime-version:content-type:content-transfer-encoding:list-id; s=smtpapi; bh=vi/rnSgqeoEAzcz5dBYzWjeXJYk=; b=g6ew2umjgEzA4PZrwS LZp7UWjiuzxYy7Md90kKx53nI9h/g4lXtWwC8VK59+pW10p6Vv3/yFoC5RPJuHw3 nguxAn5yq3WJH3ng1s0FH/lk3TDeR9F65ovv9vycmIJH0ZgYq/SOMRv4YwAtOu2F vKA3Ia9cUKShyvfkK+W0z4ij4= Received: by filter0424p1mdw1.sendgrid.net with SMTP id filter0424p1mdw1.30580.567AF7813E 2015-12-23 19:35:29.748746262 +0000 UTC Received: from herokuapp.com (ec2-54-158-216-61.compute-1.amazonaws.com [54.158.216.61]) by ismtpd0006p1iad1.sendgrid.net (SG) with ESMTP id 4arT2xCvSjyF8lxnos5SJA for ; Wed, 23 Dec 2015 19:35:29.685 +0000 (UTC) Date: Wed, 23 Dec 2015 19:35:29 +0000 From: sephvelut@gmail.com To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 47056 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 11867 X-Redmine-Issue-Author: dingoegret X-Redmine-Sender: dingoegret X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: ync6xU2WACa70kv/Ymy4QrNMhiuLXJG8OTL2vJD1yS7DvGCw6a1JT6p5S+dbhexTy5f757JTA1jJJT mK0PsrZrSCiICgG/Rbpnz5b8ZFIaqzLoMDCQjgFl69zgaTvcK9rik06fDrDdOHlcpFWvYtXIPD33QE OsUp6/19ryMqdwn4+r/QRhcLCEt7DgEXAHWUip1nqbvzUd/sAl885bSFeg== X-ML-Name: ruby-core X-Mail-Count: 72456 Subject: [ruby-core:72456] [Ruby trunk - Bug #11867] overriden constant instance variable mismatch X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #11867 has been updated by dingo egret. A = Struct.new(:a) A.new(1) class A def initialize(b) @b = b end end A.new(1) Is this expected? ---------------------------------------- Bug #11867: overriden constant instance variable mismatch https://bugs.ruby-lang.org/issues/11867#change-55748 * Author: dingo egret * Status: Open * Priority: Normal * Assignee: * ruby -v: ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-darwin14] * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN ---------------------------------------- A = Struct.new(:a) A.new(1) # class A def initialize(b) @b = b end end A.new(1) # Is this expected? -- https://bugs.ruby-lang.org/