1
0
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:
Calvin Rose 2019-10-24 15:17:19 -05:00
parent 9097e36ea0
commit d28925fdab
2 changed files with 3 additions and 0 deletions

View File

@ -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) {

View File

@ -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)