2019-03-06 00:10:43 +00:00
|
|
|
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.
|
2019-07-01 14:25:33 +00:00
|
|
|
// Warning: (139-140): Assertion checker does not yet implement type struct C.S memory
|
2019-03-06 00:10:43 +00:00
|
|
|
// Warning: (139-151): Assertion checker does not yet implement such assignments.
|
|
|
|
// Warning: (162-165): Assertion checker does not yet support this expression.
|
2019-07-01 14:25:33 +00:00
|
|
|
// Warning: (162-163): Assertion checker does not yet implement type struct C.S memory
|
2019-03-06 00:10:43 +00:00
|
|
|
// Warning: (155-176): Assertion violation happens here
|