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

13 lines
258 B
Solidity

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