1
0
forked from aniani/vim

patch 8.2.0517: Vim9: cannot separate "func" and "func(): void"

Problem:    Vim9: cannot separate "func" and "func(): void".
Solution:   Use VAR_ANY for "any" and VAR_UNKNOWN for "no type".
This commit is contained in:
Bram Moolenaar
2020-04-05 21:38:23 +02:00
parent f87a0400fd
commit 4c68375057
13 changed files with 88 additions and 29 deletions

View File

@@ -1321,8 +1321,9 @@ typedef struct cctx_S cctx_T;
typedef enum
{
VAR_UNKNOWN = 0, // not set, also used for "any" type
VAR_VOID, // no value
VAR_UNKNOWN = 0, // not set, any type or "void" allowed
VAR_ANY, // used for "any" type
VAR_VOID, // no value (function not returning anything)
VAR_BOOL, // "v_number" is used: VVAL_TRUE or VVAL_FALSE
VAR_SPECIAL, // "v_number" is used: VVAL_NULL or VVAL_NONE
VAR_NUMBER, // "v_number" is used