#830: Assertion fails when calls undef with Symbol including expression
interpolation.
----------------------------------+-----------------------------------------
Reporter: watson1...@… | Owner: lsansone...@…
Type: defect | Status: new
Priority: blocker | Milestone:
Component: MacRuby | Keywords:
----------------------------------+-----------------------------------------
Test Script:
{{{
#!ruby
$ cat test_undef.rb
# '[ruby-dev:32308]'
def foobar
end
undef :"foo#{:bar}"
foobar
}}}
Result of Ruby 1.9.1:
{{{
$ ruby test_undef.rb
test_undef.rb:6:in `<main>': undefined local variable or method `foobar'
for main:Object (NameError)
}}}
Result of MacRuby Trunk:
{{{
$ macruby test_undef.rb
Assertion failed: (TYPE(name) == T_SYMBOL), function compile_node0, file
compiler.cpp, line 4101.
zsh: abort macruby test_undef.rb
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/830>
MacRuby <http://macruby.org/>
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel