Skip to content

Instantly share code, notes, and snippets.

@zerowidth
Created March 4, 2010 16:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zerowidth/321853 to your computer and use it in GitHub Desktop.
Save zerowidth/321853 to your computer and use it in GitHub Desktop.
ruby 1.8.7 p249 bug
class A
def foo
"foo!"
end
end
class B < A
def foo
lambda { super }
end
end
# this will fail on ruby 1.8.7 p249
B.new.foo.call # => "foo!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment