Add include directive
Add an include directive to include namespaces into a contract. Only allowed at the top level. To allow includes, either call through aeso_compiler:file or set the option `allow_include` (and add `include_path`(s)).
This commit is contained in:
committed by
Ulf Norell
parent
0a5b80668f
commit
2b7490776e
@@ -0,0 +1,10 @@
|
||||
include "included.aes"
|
||||
include "../contracts/included2.aes"
|
||||
|
||||
contract Include =
|
||||
// include "maps.aes"
|
||||
function foo() =
|
||||
Included.foo() < Included2a.bar()
|
||||
|
||||
function bar() =
|
||||
Included2b.foo() > Included.foo()
|
||||
Reference in New Issue
Block a user