mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	Surpress warnings: possibly useless use of :: in void context
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									e66eec9284
								
							
						
					
					
						commit
						0efad539ed
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -23,13 +23,13 @@ $:.unshift(File.expand_path('..', __FILE__)+'/./foo')
 | 
			
		|||
module Foo
 | 
			
		||||
  autoload :Bar, 'bar'
 | 
			
		||||
end
 | 
			
		||||
Foo::Bar
 | 
			
		||||
p Foo::Bar
 | 
			
		||||
      INPUT
 | 
			
		||||
    end
 | 
			
		||||
    open(tmpfiles[1], 'w') do |f|
 | 
			
		||||
      f.puts 'class Foo::Bar; end'
 | 
			
		||||
    end
 | 
			
		||||
    assert_in_out_err([tmpfiles[0]], "", [], [])
 | 
			
		||||
    assert_in_out_err([tmpfiles[0]], "", ["Foo::Bar"], [])
 | 
			
		||||
  ensure
 | 
			
		||||
    File.unlink(*tmpfiles) rescue nil if tmpfiles
 | 
			
		||||
    tmpdirs.each {|dir| Dir.rmdir(dir)}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue