Test imports, panics

This commit is contained in:
Scott Richmond 2022-04-25 19:08:24 -04:00
parent 6d81175b37
commit a84e232cc7
2 changed files with 12 additions and 1 deletions

5
bar.ld Normal file
View File

@ -0,0 +1,5 @@
ns Bar {
:foo :foo
:bar :bar
:baz "baz"
}

View File

@ -1 +1,7 @@
do "hello!" > fn (x) -> print (x) > print
import "bar.ld" as Bar
print ("Bar :foo should be :foo. It is ", Bar :foo)
print ("But if I do something naughty, Ludus will panic")
panic! ("oops", :foo, 42)