solidity/test/libsolidity/smtCheckerTests/types/enum_in_library_2.sol

18 lines
255 B
Solidity
Raw Normal View History

2019-03-06 00:10:43 +00:00
pragma experimental SMTChecker;
library L
{
enum D { Left, Right }
}
contract C
{
enum E { Left, Right }
2020-02-12 02:21:42 +00:00
function f(E _d) public pure {
2019-03-06 00:10:43 +00:00
_d = E.Right;
assert(_d == E.Left);
}
}
// ----
// Warning 4661: (159-179): Assertion violation happens here