mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix module member names for importing with renaming.
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
==== Source: s1.sol ====
|
||||
int constant a = 2;
|
||||
==== Source: s2.sol ====
|
||||
import {a as e} from "s1.sol";
|
||||
import "s2.sol" as M;
|
||||
contract C {
|
||||
function f() public pure returns (int) { return M.e; }
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
==== Source: s1.sol ====
|
||||
int constant a = 2;
|
||||
==== Source: s2.sol ====
|
||||
import {a as e} from "s1.sol";
|
||||
import "s2.sol" as M;
|
||||
contract C {
|
||||
function f() public pure returns (int) { return M.a; }
|
||||
}
|
||||
// ----
|
||||
// TypeError 9582: (s2.sol:116-119): Member "a" not found or not visible after argument-dependent lookup in module "s2.sol".
|
||||
Reference in New Issue
Block a user