solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/200_integer_signed_exp_unsigned.sol

4 lines
162 B
Solidity

contract test { function() external { uint x = 3; int y = -4; y ** x; } }
// ----
// TypeError: (62-68): Operator ** not compatible with types int256 and uint256