repo.or.cz
/
jruby.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Fix for JRUBY-2882. Handle error messages related to constructors better
[jruby.git]
/
test
/
testRedefine.rb
blob
0305566bd397ff4c79fdfcf1740d5a5f38f755bf
1
require 'test/minirunit'
2
test_check "Test redefinition of methods:"
3
4
def a() yield end
5
test_equal('x', a { 'x' })
6
def a() yield 'y' end
7
test_equal('y', a {|e| e})