Clarify import.

This commit is contained in:
chriseth 2018-10-25 18:28:24 +02:00 committed by GitHub
parent 6e3456d182
commit 525fa5109d
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
-----