aboutsummaryrefslogtreecommitdiff
path: root/test/import.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-06-17 17:33:32 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-06-17 17:33:32 -0400
commit7e261bea9b303ff2cc24464c5400100f72badfaf (patch)
treea2cb06a4560e698b7cd0ea7128b180cfe3a84e9c /test/import.tm
parent1621968fc82f17708c1d5b6f5bd65ba2244269a3 (diff)
Fix 'use' test to use 'import' instead
Diffstat (limited to 'test/import.tm')
-rw-r--r--test/import.tm9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/import.tm b/test/import.tm
new file mode 100644
index 00000000..58f4e451
--- /dev/null
+++ b/test/import.tm
@@ -0,0 +1,9 @@
+imported := import ./use_import
+
+func asdf()->imported.ImportedType:
+ return imported.get_value()
+
+func main():
+ >> [:imported.ImportedType]
+ >> asdf()
+ = ImportedType(name="Hello")