Fix ICE on multi-source use of abi.*

This commit is contained in:
Leo Alt
2021-08-27 18:55:36 +02:00
parent ab6b430c1f
commit 60b866f9d8
10 changed files with 74 additions and 46 deletions
@@ -0,0 +1,9 @@
==== Source: s1.sol ====
function f() {
ecrecover("1234", 1, "0", abi.decode("", (bytes2)));
}
==== Source: s2.sol ====
contract C {}
// ----
// Warning 6133: (s1.sol:16-67): Statement has no effect.
// Warning 2018: (s1.sol:0-70): Function state mutability can be restricted to pure