Add a test for using undefined namespaces
This commit is contained in:
parent
9acd1b1d88
commit
5ef068f1ff
@ -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).
|
||||||
|
4
test/contracts/using_namespace_undefined.aes
Normal file
4
test/contracts/using_namespace_undefined.aes
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
contract C =
|
||||||
|
using MyUndefinedNamespace
|
||||||
|
|
||||||
|
entrypoint init() = ()
|
Loading…
x
Reference in New Issue
Block a user