diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-29 08:45:13 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-29 08:45:13 +0000 |
commit | f77c97a8ca966ba2a0303b838fa7e04ebc311ecb (patch) | |
tree | 8973d62e7390b1e6374aea6808368e77e7377c2b /test/ruby/test_const.rb | |
parent | 5cab66cbcfd2c1d1b1da916b7e7b2be8b41cc06a (diff) | |
download | ruby-f77c97a8ca966ba2a0303b838fa7e04ebc311ecb.tar.gz |
variable.c: show namespace
* variable.c (rb_const_set): show namespace in warning messages.
[Feature #7190]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_const.rb')
-rw-r--r-- | test/ruby/test_const.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_const.rb b/test/ruby/test_const.rb index 31adb2a0ce..dab45b7e08 100644 --- a/test/ruby/test_const.rb +++ b/test/ruby/test_const.rb @@ -1,3 +1,4 @@ +# -*- coding: us-ascii -*- require 'test/unit' class TestConst < Test::Unit::TestCase @@ -50,7 +51,7 @@ class TestConst < Test::Unit::TestCase c = Class.new c.const_set(:X, 1) assert_output(nil, <<-WARNING) {c.const_set(:X, 2)} -#{__FILE__}:#{__LINE__-1}: warning: already initialized constant X +#{__FILE__}:#{__LINE__-1}: warning: already initialized constant #{c}::X #{__FILE__}:#{__LINE__-3}: warning: previous definition of X was here WARNING end |