mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
		
			301 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			301 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| contract C {
 | |
|     function f() pure public returns (bytes memory r) {
 | |
|         r = abi.encode(1, 2);
 | |
|         r = abi.encodePacked(f());
 | |
|         r = abi.encodeWithSelector(0x12345678, 1);
 | |
|         r = abi.encodeWithSignature("f(uint256)", 4);
 | |
|     }
 | |
| }
 | |
| // ----
 | |
| // Warning 5740: (142-237): Unreachable code.
 |