Mercurial > vim
comparison src/userfunc.c @ 24890:0cba2be8cbd7 v8.2.2983
patch 8.2.2983: Vim9: an inline function requires specifying the return type
Commit: https://github.com/vim/vim/commit/a9931535387e5eb4e6ce62f2a661484de4a1757d
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jun 12 15:58:16 2021 +0200
patch 8.2.2983: Vim9: an inline function requires specifying the return type
Problem: Vim9: an inline function requires specifying the return type.
Solution: Make the return type optional.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 12 Jun 2021 16:00:04 +0200 |
parents | a8d64f1a223b |
children | e61a2085c89b |
comparison
equal
deleted
inserted
replaced
24889:a150a8f592f1 | 24890:0cba2be8cbd7 |
---|---|
1375 &fp->uf_type_list, TRUE); | 1375 &fp->uf_type_list, TRUE); |
1376 if (fp->uf_ret_type == NULL) | 1376 if (fp->uf_ret_type == NULL) |
1377 goto errret; | 1377 goto errret; |
1378 } | 1378 } |
1379 else | 1379 else |
1380 fp->uf_ret_type = &t_any; | 1380 fp->uf_ret_type = &t_unknown; |
1381 } | 1381 } |
1382 | 1382 |
1383 fp->uf_lines = newlines; | 1383 fp->uf_lines = newlines; |
1384 if (current_funccal != NULL && eval_lavars) | 1384 if (current_funccal != NULL && eval_lavars) |
1385 { | 1385 { |