mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			324 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			324 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| contract C {
 | |
|     function f() public payable {
 | |
| 		abi.encode(this.f{value: 2});
 | |
| 		abi.encode(this.f{gas: 2});
 | |
| 		abi.encode(this.f{value: 2, gas: 1});
 | |
|     }
 | |
| }
 | |
| // ----
 | |
| // TypeError: (60-76): This type cannot be encoded.
 | |
| // TypeError: (92-106): This type cannot be encoded.
 | |
| // TypeError: (122-146): This type cannot be encoded.
 |