solidity/test/libsolidity/smtCheckerTests/special/msg_parens_1.sol

14 lines
334 B
Solidity
Raw Normal View History

2021-09-27 14:55:59 +00:00
contract C {
function f() public payable {
assert((msg).value == 10);
assert((true ? msg : msg).value == 12);
}
}
// ====
// SMTEngine: all
// SMTIgnoreOS: macos
// SMTIgnoreCex: yes
2021-09-27 14:55:59 +00:00
// ----
// TypeError 9717: (90-93): Invalid mobile type in true expression.
// TypeError 3703: (96-99): Invalid mobile type in false expression.