mirror of
https://github.com/janet-lang/janet
synced 2024-11-28 11:09:54 +00:00
Relax type checking when fuction position is nil
This lets the flychecker work as expected.
This commit is contained in:
parent
9097e36ea0
commit
d28925fdab
@ -454,6 +454,7 @@ static JanetSlot janetc_call(JanetFopts opts, JanetSlot *slots, JanetSlot fun) {
|
||||
break;
|
||||
case JANET_CFUNCTION:
|
||||
case JANET_ABSTRACT:
|
||||
case JANET_NIL:
|
||||
break;
|
||||
case JANET_KEYWORD:
|
||||
if (min_arity == 0) {
|
||||
|
@ -182,4 +182,6 @@
|
||||
(assert (= (string out-buf) "Hello\nhi") "print and prin to buffer 1")
|
||||
(assert (= (string err-buf) "Sup\nnot much.") "eprint and eprin to buffer 1")
|
||||
|
||||
(assert (= (string '()) (string [])) "empty bracket tuple literal")
|
||||
|
||||
(end-suite)
|
||||
|
Loading…
Reference in New Issue
Block a user