Fix import directive visits in type checker and view pure checker.

This commit is contained in:
Daniel Kirchner
2022-03-14 14:53:06 +01:00
committed by chriseth
parent 3f6beaa0ad
commit 0f1a63c3fa
8 changed files with 37 additions and 0 deletions
@@ -0,0 +1,15 @@
==== Source: A ====
function sub(uint256 x, uint256 y) pure returns (uint) { return 1; }
function sub(uint256 x) pure returns (uint) { return 2; }
==== Source: B ====
import {sub} from "A";
contract C
{
function f() public pure returns (uint, uint) {
return (sub(1, 2), sub(2));
}
}
// ====
// compileViaYul: also
// ----
// f() -> 1, 2