Created
March 18, 2012 17:10
-
-
Save pangloss/2077754 to your computer and use it in GitHub Desktop.
JRuby dci branch bug repro
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class EnumerablePipe | |
def initialize(obj) | |
obj.to_enum | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class IdenticalCopy | |
def initialize(obj) | |
obj.to_enum | |
end | |
end | |
require 'enumerable_pipe' | |
puts 'start' | |
IdenticalCopy.new [1, 2, 3] | |
puts 'it works here' | |
EnumerablePipe.new [1, 2, 3] | |
puts 'but not here' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment