mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #5311 from ethereum/chriseth-patch-3
Clarify import.
This commit is contained in:
commit
1b02bfdb4a
@ -147,6 +147,10 @@ Another syntax is not part of ES6, but probably convenient:
|
||||
|
||||
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
|
||||
-----
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user