mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
deprecate TRUE,FALSE,NIL
* object.c (InitVM_Object): deprecate toplevel constants TRUE, FALSE, and NIL. [Feature #12574] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f5f6859b42
commit
41d220441d
4 changed files with 15 additions and 6 deletions
4
basictest/test.rb
Normal file → Executable file
4
basictest/test.rb
Normal file → Executable file
|
@ -1860,11 +1860,9 @@ $bad=false
|
|||
eval 'while false; $bad = true; print "foo\n" end'
|
||||
test_ok(!$bad)
|
||||
|
||||
test_ok(eval('TRUE'))
|
||||
test_ok(eval('Object'))
|
||||
test_ok(eval('true'))
|
||||
test_ok(!eval('NIL'))
|
||||
test_ok(!eval('nil'))
|
||||
test_ok(!eval('FALSE'))
|
||||
test_ok(!eval('false'))
|
||||
|
||||
$foo = 'test_ok(true)'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue