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:
@@ -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!"))
|
||||
|
Reference in New Issue
Block a user