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

4 lines
140 B
Solidity
Raw Normal View History

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