Actions
Bug #5614
closedProc#source_location & #inspect shows wrong line number when chained
Description
When procs are chained, the line number for each proc is mis-calculated to be the 1st proc's line-number.
Eg.
class Foo
def bar(&blk)
pp blk.source_location
self
end
end
Foo.new.bar do
puts 'b1'
end.bar do
puts 'b2'
end
The 1st & 2nd procs show the same line number, when they shouldn't.
Though i listed the target version as 1.9.2, this behaviour is consistent for all versions of mri.
Files
Actions
Like0
Like0Like0