solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/338_rational_bitnot_unary_operation.sol

8 lines
157 B
Solidity
Raw Normal View History

contract test {
function f() public {
~fixed(3.5);
}
}
// ----
// TypeError: (50-61): Unary operator ~ cannot be applied to type fixed128x18