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

18 lines
576 B
Solidity

pragma experimental SMTChecker;
contract C
{
enum D { Left, Right }
struct S { uint x; D d; }
function f(S memory s) internal pure {
s.d = D.Left;
assert(s.d == D.Left);
}
}
// ----
// Warning: (109-119): Assertion checker does not yet support the type of this variable.
// Warning: (139-142): Assertion checker does not yet support this expression.
// Warning: (139-151): Assertion checker does not yet implement such assignments.
// Warning: (162-165): Assertion checker does not yet support this expression.
// Warning: (155-176): Assertion violation happens here