diff options
author | chriseth <chris@ethereum.org> | 2018-10-26 00:41:44 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-26 00:41:44 +0800 |
commit | 1b02bfdb4a27c6834fa9acef5a5d451a1d8e30a2 (patch) | |
tree | 252e5b0277f613ae367d31b26d0d3a1541d96e07 | |
parent | 6e3456d18288905e9712e3b78bcfe9adc86d37b5 (diff) | |
parent | 525fa5109d3ce7c19a8909be91e3d41d2df3929b (diff) | |
download | dexon-solidity-1b02bfdb4a27c6834fa9acef5a5d451a1d8e30a2.tar.gz dexon-solidity-1b02bfdb4a27c6834fa9acef5a5d451a1d8e30a2.tar.zst dexon-solidity-1b02bfdb4a27c6834fa9acef5a5d451a1d8e30a2.zip |
Merge pull request #5311 from ethereum/chriseth-patch-3
Clarify import.
-rw-r--r-- | docs/layout-of-source-files.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/layout-of-source-files.rst b/docs/layout-of-source-files.rst index fb18f8a9..9a8bdc3e 100644 --- a/docs/layout-of-source-files.rst +++ b/docs/layout-of-source-files.rst @@ -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 ----- |