Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: JRuby 1.7.1
-
Component/s: None
-
Labels:None
-
Environment:jruby 1.6.7 (ruby-1.8.7-p357) (2012-02-22 3e82bc8) (Java HotSpot(TM) Server VM 1.7.0_02) [linux-i386-java]
-
Number of attachments :
Description
class Foo
def each
yield 1
end
end
enum = Foo.new.enum_for
puts enum.next #fails with "yield called out of block"
Confirmed on master too.