mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
15 lines
324 B
Solidity
15 lines
324 B
Solidity
==== Source: A ====
|
|
using {f} for S global;
|
|
// this should not conflict
|
|
using {f} for S;
|
|
struct S { uint x; }
|
|
function gen() pure returns (S memory) {}
|
|
function f(S memory _x) pure returns (uint) { return _x.x; }
|
|
==== Source: B ====
|
|
function test() pure
|
|
{
|
|
uint p = g().f();
|
|
p++;
|
|
}
|
|
import {gen as g} from "A";
|
|
// ---- |