summaryrefslogtreecommitdiffstats
path: root/src/evalbuffer.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-01-04 15:17:03 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-04 15:17:03 +0000
commit078a46161e8b1b30bf306d6c1f4f0af7c616a989 (patch)
tree334c2fa968e1641524028ac18afedf5980446e64 /src/evalbuffer.c
parent9acf2d8be93f3b50607279e7f3484b019675d0a7 (diff)
patch 8.2.3996: Vim9: type checking lacks information about declared typev8.2.3996
Problem: Vim9: type checking for list and dict lacks information about declared type. Solution: Add dv_decl_type and lv_decl_type. Refactor the type stack to store two types in each entry.
Diffstat (limited to 'src/evalbuffer.c')
-rw-r--r--src/evalbuffer.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/evalbuffer.c b/src/evalbuffer.c
index 37febe4059..58834785aa 100644
--- a/src/evalbuffer.c
+++ b/src/evalbuffer.c
@@ -807,12 +807,6 @@ f_getbufline(typval_T *argvars, typval_T *rettv)
get_buffer_lines(buf, lnum, end, TRUE, rettv);
}
- type_T *
-ret_f_getline(int argcount, type_T **argtypes UNUSED)
-{
- return argcount == 1 ? &t_string : &t_list_string;
-}
-
/*
* "getline(lnum, [end])" function
*/