diff --git a/test/aeso_compiler_tests.erl b/test/aeso_compiler_tests.erl index 81f2cef..1c724a5 100644 --- a/test/aeso_compiler_tests.erl +++ b/test/aeso_compiler_tests.erl @@ -1175,6 +1175,13 @@ failing_contracts() -> [<> ]) + , ?TYPE_ERROR(calling_child_contract_entrypoint, + [<>]) + , ?TYPE_ERROR(using_contract_as_namespace, + [<>]) ]. validation_test_() -> diff --git a/test/contracts/calling_child_contract_entrypoint.aes b/test/contracts/calling_child_contract_entrypoint.aes new file mode 100644 index 0000000..3e9f4c0 --- /dev/null +++ b/test/contracts/calling_child_contract_entrypoint.aes @@ -0,0 +1,5 @@ +contract F = + entrypoint g() = 1 + +main contract C = + entrypoint f() = F.g() diff --git a/test/contracts/using_contract_as_namespace.aes b/test/contracts/using_contract_as_namespace.aes new file mode 100644 index 0000000..61c1390 --- /dev/null +++ b/test/contracts/using_contract_as_namespace.aes @@ -0,0 +1,7 @@ +contract F = + entrypoint g() = 1 + +main contract C = + using F for [g] + + entrypoint f() = g() \ No newline at end of file