solidity/test/libsolidity/smtCheckerTests/types/enum_in_library.sol
2020-03-11 16:29:07 +01:00

16 lines
185 B
Solidity

pragma experimental SMTChecker;
library L
{
enum D { Left, Right }
}
contract C
{
enum E { Left, Right }
function f(E _d) public pure {
_d = E.Left;
assert(_d == E.Left);
}
}