ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
From: nobu@ruby-lang.org
To: ruby-core@ruby-lang.org
Subject: [ruby-core:72460] [Ruby trunk - Bug #11867] [Feedback] overriden constant instance variable mismatch
Date: Thu, 24 Dec 2015 00:32:42 +0000	[thread overview]
Message-ID: <redmine.journal-55751.20151224003240.716eb32fa64ffa5d@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-11867.20151223193402@ruby-lang.org

Issue #11867 has been updated by Nobuyoshi Nakada.

Description updated
Status changed from Open to Feedback

Exactly.

What do you expect instead?


----------------------------------------
Bug #11867: overriden constant instance variable mismatch
https://bugs.ruby-lang.org/issues/11867#change-55751

* Author: dingo egret
* Status: Feedback
* 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
----------------------------------------
~~~ruby
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?




-- 
https://bugs.ruby-lang.org/

  parent reply	other threads:[~2015-12-24  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <redmine.issue-11867.20151223193402@ruby-lang.org>
2015-12-23 19:34 ` [ruby-core:72455] [Ruby trunk - Bug #11867] [Open] overriden constant instance variable mismatch sephvelut
2015-12-23 19:35 ` [ruby-core:72456] [Ruby trunk - Bug #11867] " sephvelut
2015-12-23 19:37 ` [ruby-core:72457] " sephvelut
2015-12-24  0:32 ` nobu [this message]
2015-12-24  2:21 ` [ruby-core:72462] " shugo
2015-12-29 19:33 ` [ruby-core:72600] " sephvelut

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.ruby-lang.org/en/community/mailing-lists/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=redmine.journal-55751.20151224003240.716eb32fa64ffa5d@ruby-lang.org \
    --to=ruby-core@ruby-lang.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).