solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/331_rational_as_exponent_half.sol

8 lines
181 B
Solidity
Raw Normal View History

contract test {
function f() public {
2 ** (1/2);
}
}
// ----
// TypeError 2271: (50-60): Operator ** not compatible with types int_const 2 and rational_const 1 / 2