aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2021-02-28 18:37:25 +0100
committerGustav Sörnäs <gustav@sornas.net>2021-02-28 18:37:25 +0100
commit7481792dacae44a7128b3ab250e28f2e6cc9b0b2 (patch)
tree84e95c7932da6b58863cbd4b3037c4d7d394a603
parente2eefa106a8f8b1677ba6275f5ea5879cac20974 (diff)
downloadsylt-7481792dacae44a7128b3ab250e28f2e6cc9b0b2.tar.gz
add test files for importing
-rw-r--r--main.sy6
-rw-r--r--other.sy9
2 files changed, 15 insertions, 0 deletions
diff --git a/main.sy b/main.sy
new file mode 100644
index 0000000..3730908
--- /dev/null
+++ b/main.sy
@@ -0,0 +1,6 @@
+use other
+
+start :: fn {
+ other.f()
+ print other.g()
+}
diff --git a/other.sy b/other.sy
new file mode 100644
index 0000000..d81cd6b
--- /dev/null
+++ b/other.sy
@@ -0,0 +1,9 @@
+f :: fn {
+ print "f"
+}
+
+// answer := 42
+
+g :: fn {
+ ret 42
+}