diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2021-03-01 18:25:01 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2021-03-01 18:25:01 +0100 |
| commit | 504d28930448985f914d3082db9f11d4fa2d8b5b (patch) | |
| tree | 71e7a42bd6953e0de7d7524c2a5837381271cc79 | |
| parent | 66875980b344ca798b14a95b3b1522f1e209d9e9 (diff) | |
| download | sylt-504d28930448985f914d3082db9f11d4fa2d8b5b.tar.gz | |
add test for namespaces in namespaces
| -rw-r--r-- | main.sy | 4 | ||||
| -rw-r--r-- | other.sy | 2 | ||||
| -rw-r--r-- | third.sy | 3 |
3 files changed, 9 insertions, 0 deletions
@@ -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() } @@ -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" +} |
