diff options
author | chriseth <chris@ethereum.org> | 2018-10-26 00:28:24 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-26 00:28:24 +0800 |
commit | 525fa5109d3ce7c19a8909be91e3d41d2df3929b (patch) | |
tree | 252e5b0277f613ae367d31b26d0d3a1541d96e07 | |
parent | 6e3456d18288905e9712e3b78bcfe9adc86d37b5 (diff) | |
download | dexon-solidity-525fa5109d3ce7c19a8909be91e3d41d2df3929b.tar.gz dexon-solidity-525fa5109d3ce7c19a8909be91e3d41d2df3929b.tar.zst dexon-solidity-525fa5109d3ce7c19a8909be91e3d41d2df3929b.zip |
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 ----- |