Ban using contracts as namespaces (#428)

* Ban calling contracts functions as functions namespaces

* Ban using contracts as namespaces

* Add tests

* Update CHANGELOG

* Separate guards with a semicolon
This commit is contained in:
Gaith Hallak
2022-11-23 12:03:24 +03:00
committed by GitHub
parent 256df25af4
commit 5adeb6c93e
5 changed files with 28 additions and 1 deletions
@@ -0,0 +1,5 @@
contract F =
entrypoint g() = 1
main contract C =
entrypoint f() = F.g()
@@ -0,0 +1,7 @@
contract F =
entrypoint g() = 1
main contract C =
using F for [g]
entrypoint f() = g()