Skip to content

Instantly share code, notes, and snippets.

@pangloss
Created March 18, 2012 17:10
Show Gist options
  • Save pangloss/2077754 to your computer and use it in GitHub Desktop.
Save pangloss/2077754 to your computer and use it in GitHub Desktop.
JRuby dci branch bug repro
class EnumerablePipe
def initialize(obj)
obj.to_enum
end
end
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