ActionsLike0
Bug #7298
closedBehavior of Enumerator.new different between 1.9.3 and 2.0.0
Description
Under 1.9.3, when Enumerator.new was called with arguments and block, it return Enumerator object.
But under trunk, it makes TypeError.
$ ruby -v -e "p Enumerator.new([1,2,3]){|y|y.yield 4}"
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.4.2]
#<Enumerator: [1, 2, 3]:each>
$ ./ruby -v -e "p Enumerator.new([1,2,3]){|y|y.yield 4}"
ruby 2.0.0dev (2012-11-07 trunk 37528) [x86_64-darwin12.2.0]
-e:1:in initialize': can't convert Array into Integer (TypeError) from -e:1:in
new'
from -e:1:in `'
Updated by mame (Yusuke Endoh) over 12 years ago
- Status changed from Open to Assigned
- Assignee set to marcandre (Marc-Andre Lafortune)
- Target version set to 2.0.0
Updated by marcandre (Marc-Andre Lafortune) over 12 years ago
- Status changed from Assigned to Closed
Updated by ayumin (Ayumu AIZAWA) over 12 years ago
- Status changed from Closed to Open
Updated by marcandre (Marc-Andre Lafortune) over 12 years ago
- Status changed from Open to Feedback
Updated by ayumin (Ayumu AIZAWA) over 12 years ago
- Status changed from Feedback to Assigned
Updated by marcandre (Marc-Andre Lafortune) over 12 years ago
- Assignee changed from marcandre (Marc-Andre Lafortune) to ayumin (Ayumu AIZAWA)
Updated by luislavena (Luis Lavena) over 12 years ago
- Category set to test
- Priority changed from Normal to 7
Updated by marcandre (Marc-Andre Lafortune) over 12 years ago
- Status changed from Assigned to Closed
- Priority changed from 7 to Normal
ActionsLike0