Actions
Bug #6867
closedsuper in a Mutex#synchronize block
Description
The following code:
require 'thread'
class Parent
def meth
end
end
class Child < Parent
def meth
Mutex.new.synchronize do
super
end
end
end
Child.new.meth
raises
bug_super.rb:13:in block in meth': can't find the method for super, which may be called in an orphan block (NoMethodError) from <internal:prelude>:10:in
synchronize'
from bug_super.rb:12:in meth' from bug_super.rb:18:in
'
I met the bug with the listen gem: https://github.com/guard/listen/blob/master/lib/listen/adapters/darwin.rb#L22-25 .
Files
Actions
Like0
Like0Like0Like0Like0