From 504d28930448985f914d3082db9f11d4fa2d8b5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Mon, 1 Mar 2021 18:25:01 +0100 Subject: add test for namespaces in namespaces --- main.sy | 4 ++++ other.sy | 2 ++ third.sy | 3 +++ 3 files changed, 9 insertions(+) create mode 100644 third.sy diff --git a/main.sy b/main.sy index 50e0d27..e7c344d 100644 --- a/main.sy +++ b/main.sy @@ -1,8 +1,12 @@ use other +use third start :: fn { other.f() print other.g() 42 <=> other.g() other.g() <=> 42 + + other.third.print_the_third() + third.print_the_third() } diff --git a/other.sy b/other.sy index f959b3f..cee7fde 100644 --- a/other.sy +++ b/other.sy @@ -1,3 +1,5 @@ +use third + f :: fn { print "f" } diff --git a/third.sy b/third.sy new file mode 100644 index 0000000..0477077 --- /dev/null +++ b/third.sy @@ -0,0 +1,3 @@ +print_the_third :: fn { + print "three" +} -- cgit v1.2.1