solidity/test/libsolidity/syntaxTests/using/global_nonglobal.sol
2022-03-14 17:39:14 +01:00

18 lines
412 B
Solidity

==== Source: A ====
using {f} for S global;
using {g} for S;
struct S { uint x; }
function gen() pure returns (S memory) {}
function f(S memory _x) pure { _x.g(); }
function g(S memory _x) pure { }
==== Source: B ====
import "A";
function test() pure
{
gen().f();
gen().g();
}
// ----
// TypeError 9582: (B:54-61): Member "g" not found or not visible after argument-dependent lookup in struct S memory.