Merge pull request #5311 from ethereum/chriseth-patch-3

Clarify import.
This commit is contained in:
chriseth 2018-10-25 18:41:44 +02:00 committed by GitHub
commit 1b02bfdb4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
-----