solidity/test/libsolidity/smtCheckerTests/types/enum_in_library_2.sol
2019-03-07 15:15:12 +01:00

18 lines
252 B
Solidity

pragma experimental SMTChecker;
library L
{
enum D { Left, Right }
}
contract C
{
enum E { Left, Right }
function f(E _d) internal pure {
_d = E.Right;
assert(_d == E.Left);
}
}
// ----
// Warning: (161-181): Assertion violation happens here