mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Clarify import.
This commit is contained in:
parent
6e3456d182
commit
525fa5109d
@ -147,6 +147,10 @@ Another syntax is not part of ES6, but probably convenient:
|
|||||||
|
|
||||||
which is equivalent to ``import * as symbolName from "filename";``.
|
which is equivalent to ``import * as symbolName from "filename";``.
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
If you use `import "filename.sol" as moduleName;`, you access a contract called `C`
|
||||||
|
from inside `"filename.sol"` as `moduleName.C` and not by using `C` directly.
|
||||||
|
|
||||||
Paths
|
Paths
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user