1
0
mirror of https://github.com/janet-lang/janet synced 2025-09-05 20:38:03 +00:00

Address #336 case 3

Fix error condition for bad abstract types - don't return NULL, panic.
This commit is contained in:
Calvin Rose
2020-04-05 17:38:14 -05:00
parent 553e38ffd6
commit 5bbd507858
3 changed files with 11 additions and 9 deletions

View File

@@ -8,15 +8,15 @@
(def cases [
nil
"abc"
:def
'hij
123
(int/s64 123)
"7"
@@ -28,12 +28,12 @@
{:a 123}
@{:b 'xyz}
(peg/compile
'{:a (* "a" :b "a")
:b (* "b" (+ :a 0) "b")
:main (* "(" :b ")")})
(fn f [a] (fn [] {:ab a}))
(fn f [a] (print "hello world!"))