Project

General

Profile

Actions

Bug #2403

closed

Segment fault when converting method to block

Added by mrbrdo (Jan Berdajs) over 14 years ago. Updated about 13 years ago.

Status:
Closed
ruby -v:
ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]
[ruby-core:26909]

Description

=begin
When trying to convert a method to a block with the ampersand operator, I get a segfault. I'm on Ubuntu, ruby from packages (see version).
Test code: http://www.pastie.org/714918
Temp. fix: change &:metoda to &method(:metoda)

Error output:
test.rb:10: [BUG] Segmentation fault
ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]

Aborted
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0