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 (smtp.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (Postfix) with ESMTP id D358C19E0043 for ; Thu, 24 Dec 2015 04:04:46 +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 D1503B5D86D for ; Thu, 24 Dec 2015 04:37:09 +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 E85B418CC7B9 for ; Thu, 24 Dec 2015 04:37:09 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id AB0EA1204EF; Thu, 24 Dec 2015 04:37:09 +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 C772B1204D4 for ; Thu, 24 Dec 2015 04:37:05 +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=yq1cO5dc7zsk1RVLG0bhad6swnI=; b=piDnZnFKyE3digbFM7 S/A/am43YmJKuFm6/fpBOzcpwzncezYlUaoqxCsPYP7YFZmeeUlmcu3EhE1lsZDj X7jElN5nTWPl71y2GFQWuHjWbQnof9IuUlxed8qBGZ1JOMHyGvgiajxXgi+iBjIt 1ypEBrl7zdVx+dZM/BlbM7jXM= Received: by filter0540p1mdw1.sendgrid.net with SMTP id filter0540p1mdw1.6785.567AF7DD36 2015-12-23 19:37:01.77530696 +0000 UTC Received: from herokuapp.com (ec2-54-226-203-109.compute-1.amazonaws.com [54.226.203.109]) by ismtpd0002p1iad1.sendgrid.net (SG) with ESMTP id bMopRdqTTw63Z0blQCRESQ for ; Wed, 23 Dec 2015 19:37:01.648 +0000 (UTC) Date: Wed, 23 Dec 2015 19:37:01 +0000 From: sephvelut@gmail.com To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 47057 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/Ymy4QrNMhiuLXJG8OTL2vJD1yS5M5VcHHrKPSmEHkMnsXfOXEPcthKSgAHKWOM QGSrQj6ATcEr1EUfBEDi6TakrBiJkxiRD4JVnj4pgfrniB10Kr9UvU6kyeI1xC0XFvLAbCci6/5EXu gIlMTrd0R98NCCUkJwTv/rPrDJgExtNkJWd0WnNYGJRD4kL4Y6DZC3n4mg== X-ML-Name: ruby-core X-Mail-Count: 72457 Subject: [ruby-core:72457] [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) struct A a=1 class A def initialize(b) @b = b end end A.new(1) struct A a=nil Is this expected? ---------------------------------------- Bug #11867: overriden constant instance variable mismatch https://bugs.ruby-lang.org/issues/11867#change-55749 * 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/