Implement loading namespaces with the using keyword #829

Merged
ghallak merged 23 commits from ghallak/233 into master 2021-09-07 23:45:28 +09:00
2 changed files with 8 additions and 0 deletions
Showing only changes of commit 5ef068f1ff - Show all commits

View File

@ -794,6 +794,10 @@ failing_contracts() ->
, <<?Pos(21,23) , <<?Pos(21,23)
"Unbound variable f at line 21, column 23">> "Unbound variable f at line 21, column 23">>
]) ])
, ?TYPE_ERROR(using_namespace_undefined,
[<<?Pos(2,3)
"Cannot use undefined namespace MyUndefinedNamespace">>
])
]. ].
-define(Path(File), "code_errors/" ??File). -define(Path(File), "code_errors/" ??File).

View File

@ -0,0 +1,4 @@
contract C =
using MyUndefinedNamespace
entrypoint init() = ()