mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
9 lines
235 B
Solidity
9 lines
235 B
Solidity
|
==== Source: A ====
|
||
|
struct S { uint x; }
|
||
|
==== Source: B ====
|
||
|
library L {}
|
||
|
using L for S global;
|
||
|
import {S} from "A";
|
||
|
// ----
|
||
|
// TypeError 4117: (B:13-34): Can only use "global" with types defined in the same source unit at file level.
|