mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* parse.y (aref_args): args may not be a list. [ruby-dev:31592]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									69099d3e69
								
							
						
					
					
						commit
						2656b0545e
					
				
					 4 changed files with 21 additions and 17 deletions
				
			
		| 
						 | 
				
			
			@ -1,3 +1,7 @@
 | 
			
		|||
Wed Aug 29 12:48:17 2007  Nobuyoshi Nakada  <nobu@ruby-lang.org>
 | 
			
		||||
 | 
			
		||||
	* parse.y (aref_args): args may not be a list.  [ruby-dev:31592]
 | 
			
		||||
 | 
			
		||||
Wed Aug 29 11:30:10 2007  Tanaka Akira  <akr@fsij.org>
 | 
			
		||||
 | 
			
		||||
	* include/ruby/st.h (struct st_table): add entries_packed 1-bit
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,16 +1,14 @@
 | 
			
		|||
#
 | 
			
		||||
# This test file concludes tests which point out known bugs.
 | 
			
		||||
# So all tests will cause failure.
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
# massign
 | 
			
		||||
assert_equal '[0,1,{2=>3}]', '[0,*[1],2=>3]', "[ruby-dev:31592]"
 | 
			
		||||
 | 
			
		||||
assert_equal 'ok', %q{
 | 
			
		||||
  def m()
 | 
			
		||||
    yield :ng
 | 
			
		||||
  end
 | 
			
		||||
  r = :ok
 | 
			
		||||
  m {|(r)|}
 | 
			
		||||
  r
 | 
			
		||||
}, '[ruby-dev:31507]'
 | 
			
		||||
#
 | 
			
		||||
# This test file concludes tests which point out known bugs.
 | 
			
		||||
# So all tests will cause failure.
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
# massign
 | 
			
		||||
assert_equal 'ok', %q{
 | 
			
		||||
  def m()
 | 
			
		||||
    yield :ng
 | 
			
		||||
  end
 | 
			
		||||
  r = :ok
 | 
			
		||||
  m {|(r)|}
 | 
			
		||||
  r
 | 
			
		||||
}, '[ruby-dev:31507]'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -115,6 +115,8 @@ assert_equal '5',               'a = [1,2,3]; a[1] = 5; a[1]'
 | 
			
		|||
assert_equal 'bar',             '[*:foo];:bar'
 | 
			
		||||
assert_equal '[1, 2]',          'def nil.to_splat; [2]; end; [1, *nil]'
 | 
			
		||||
assert_equal '[1, 2]',          'def nil.to_splat; [1, 2]; end; [*nil]'
 | 
			
		||||
assert_equal '[0, 1, {2=>3}]',  '[0, *[1], 2=>3]', "[ruby-dev:31592]"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# hash
 | 
			
		||||
assert_equal 'Hash',            '{}.class'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										2
									
								
								parse.y
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								parse.y
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -2239,7 +2239,7 @@ aref_args	: none
 | 
			
		|||
		| args ',' assocs trailer
 | 
			
		||||
		    {
 | 
			
		||||
		    /*%%%*/
 | 
			
		||||
			$$ = list_append($1, NEW_HASH($3));
 | 
			
		||||
			$$ = arg_append($1, NEW_HASH($3));
 | 
			
		||||
		    /*%
 | 
			
		||||
			$$ = arg_add_assocs($1, $3);
 | 
			
		||||
		    %*/
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue