mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			339 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			339 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| contract C {
 | |
|     function f() public pure returns (uint16 x) {
 | |
|         // tests that ``e`` is not converted to uint8
 | |
|         // right before the exp
 | |
|         uint16 e = 0x100;
 | |
|         uint8 b = 0x2;
 | |
|         unchecked {
 | |
|             return b**e;
 | |
|         }
 | |
|     }
 | |
| }
 | |
| // ====
 | |
| // compileViaYul: also
 | |
| // compileToEwasm: also
 | |
| // ----
 | |
| // f() -> 0x00
 |