mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[SMTChecker] Fix ICEs with tuples
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
pragma experimental SMTChecker;
|
||||
|
||||
contract K {
|
||||
function f() public pure {
|
||||
(abi.encode, 2);
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning: (76-91): Statement has no effect.
|
||||
// Warning: (77-80): Assertion checker does not yet implement type abi
|
||||
@@ -0,0 +1,10 @@
|
||||
pragma experimental SMTChecker;
|
||||
|
||||
contract K {
|
||||
function f() public pure {
|
||||
(abi.encode, "");
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning: (76-92): Statement has no effect.
|
||||
// Warning: (77-80): Assertion checker does not yet implement type abi
|
||||
@@ -0,0 +1,9 @@
|
||||
pragma experimental SMTChecker;
|
||||
|
||||
contract C {
|
||||
function f() public pure {
|
||||
(("", 2));
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning: (76-85): Statement has no effect.
|
||||
@@ -0,0 +1,9 @@
|
||||
pragma experimental SMTChecker;
|
||||
|
||||
contract C {
|
||||
function f() public pure {
|
||||
(("", ""));
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning: (76-86): Statement has no effect.
|
||||
@@ -0,0 +1,9 @@
|
||||
pragma experimental SMTChecker;
|
||||
|
||||
contract C {
|
||||
function f() public pure {
|
||||
(2);
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning: (76-79): Statement has no effect.
|
||||
Reference in New Issue
Block a user