mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			398 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			398 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| contract test {
 | |
|     function a(uint a, uint b) public returns (uint r) {
 | |
|         r = a + b;
 | |
|     }
 | |
|     function b() public returns (uint r) {
 | |
|         r = a({a: 1, a: 2});
 | |
|     }
 | |
| }
 | |
| // ----
 | |
| // Warning 2519: (31-37): This declaration shadows an existing declaration.
 | |
| // Warning 2519: (39-45): This declaration shadows an existing declaration.
 | |
| // TypeError 6995: (159-160): Duplicate named argument "a".
 |