solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/201_integer_signed_exp_signed.sol

4 lines
199 B
Solidity

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