ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:82091] [Ruby trunk Bug#13752] Can't observe sibling refinements
       [not found] <redmine.issue-13752.20170718062759@ruby-lang.org>
@ 2017-07-18  6:28 ` shyouhei
  2019-10-18  0:24 ` [ruby-core:95409] [Ruby master " merch-redmine
  1 sibling, 0 replies; 2+ messages in thread
From: shyouhei @ 2017-07-18  6:28 UTC (permalink / raw)
  To: ruby-core

Issue #13752 has been reported by shyouhei (Shyouhei Urabe).

----------------------------------------
Bug #13752: Can't observe sibling refinements
https://bugs.ruby-lang.org/issues/13752

* Author: shyouhei (Shyouhei Urabe)
* Status: Assigned
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.5.0dev (2017-07-18 trunk 59355) [x86_64-darwin15]
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
Sorry in advance if already reported elsewhere, but is this intentional?

```ruby
class Foo
  using Module.new {
    refine Foo do
      def foo
        puts "foo"
      end
    end
  }

  using Module.new {
    refine Foo do
      def bar
        foo
      end
    end
  }

  new.bar
end
```



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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [ruby-core:95409] [Ruby master Bug#13752] Can't observe sibling refinements
       [not found] <redmine.issue-13752.20170718062759@ruby-lang.org>
  2017-07-18  6:28 ` [ruby-core:82091] [Ruby trunk Bug#13752] Can't observe sibling refinements shyouhei
@ 2019-10-18  0:24 ` merch-redmine
  1 sibling, 0 replies; 2+ messages in thread
From: merch-redmine @ 2019-10-18  0:24 UTC (permalink / raw)
  To: ruby-core

Issue #13752 has been updated by jeremyevans0 (Jeremy Evans).

Status changed from Assigned to Closed

This appears to be fixed in the master branch (printing `foo`), though it is still broken in 2.6.  Not sure what commit fixed it.

----------------------------------------
Bug #13752: Can't observe sibling refinements
https://bugs.ruby-lang.org/issues/13752#change-82157

* Author: shyouhei (Shyouhei Urabe)
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.5.0dev (2017-07-18 trunk 59355) [x86_64-darwin15]
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
Sorry in advance if already reported elsewhere, but is this intentional?

```ruby
class Foo
  using Module.new {
    refine Foo do
      def foo
        puts "foo"
      end
    end
  }

  using Module.new {
    refine Foo do
      def bar
        foo
      end
    end
  }

  new.bar
end
```



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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-10-18  0:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <redmine.issue-13752.20170718062759@ruby-lang.org>
2017-07-18  6:28 ` [ruby-core:82091] [Ruby trunk Bug#13752] Can't observe sibling refinements shyouhei
2019-10-18  0:24 ` [ruby-core:95409] [Ruby master " merch-redmine

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).