aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2021-03-01 18:25:01 +0100
committerGustav Sörnäs <gustav@sornas.net>2021-03-01 18:25:01 +0100
commit504d28930448985f914d3082db9f11d4fa2d8b5b (patch)
tree71e7a42bd6953e0de7d7524c2a5837381271cc79
parent66875980b344ca798b14a95b3b1522f1e209d9e9 (diff)
downloadsylt-504d28930448985f914d3082db9f11d4fa2d8b5b.tar.gz
add test for namespaces in namespaces
-rw-r--r--main.sy4
-rw-r--r--other.sy2
-rw-r--r--third.sy3
3 files changed, 9 insertions, 0 deletions
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"
+}