solidity/test/libsolidity/smtCheckerTests/typecast/enum_to_uint_max_value.sol

13 lines
253 B
Solidity
Raw Normal View History

2019-03-06 00:10:43 +00:00
pragma experimental SMTChecker;
contract C
{
enum D { Left, Right }
function f(D _a) public pure {
uint x = uint(_a);
assert(x < 10);
}
}
// ----
// Warning: (113-121): Type conversion is not yet fully supported and might yield false positives.