I
Intransition
I recently upgraded from 1.8.7-p72 to 1.8.7-p249 and a piece of code
that I had long relied on stopped working. Here is an example of the
issue:
class X
def q; "q"; end
end
class Y < X
def q
f do
super()
end
end
def f(&b)
b.call
end
end
y = Y.new
y.q
NoMethodError: super called outside of method
from (irb):7
from (irb):11:in `call'
from (irb):11:in `f'
from (irb):6:in `q'
from (irb):15
I tried this on 1.9.2 and it works so I am assuming this is a bug with
p249?
that I had long relied on stopped working. Here is an example of the
issue:
class X
def q; "q"; end
end
class Y < X
def q
f do
super()
end
end
def f(&b)
b.call
end
end
y = Y.new
y.q
NoMethodError: super called outside of method
from (irb):7
from (irb):11:in `call'
from (irb):11:in `f'
from (irb):6:in `q'
from (irb):15
I tried this on 1.9.2 and it works so I am assuming this is a bug with
p249?