solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/198_integer_boolean_not.sol

4 lines
138 B
Solidity
Raw Normal View History

contract test { function() public { uint x = 1; !x; } }
// ----
// TypeError: (48-50): Unary operator ! cannot be applied to type uint256