summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_vim9_builtin.vim
AgeCommit message (Collapse)Author
2021-02-01patch 8.2.2449: Vim9: flatten() always changes the list typev8.2.2449Bram Moolenaar
Problem: Vim9: flatten() always changes the list type. Solution: Disallow using flatten() and add flattennew().
2021-01-31patch 8.2.2443: Vim9: no compile time error for wrong str2float argumentv8.2.2443Bram Moolenaar
Problem: Vim9: no compile time error for wrong str2float argument. Solution: Check argument type. (closes #7759)
2021-01-31patch 8.2.2441: Vim9: extend() does not give an error for a type mismatchv8.2.2441Bram Moolenaar
Problem: Vim9: extend() does not give an error for a type mismatch. Solution: Check the type of the second argument. (closes #7760)
2021-01-31patch 8.2.2435: setline() gives an error for some typesv8.2.2435Bram Moolenaar
Problem: setline() gives an error for some types. Solution: Allow any type, convert each item to a string.
2021-01-30patch 8.2.2434: Vim9: no error when compiling str2nr() with a numberv8.2.2434Bram Moolenaar
Problem: Vim9: no error when compiling str2nr() with a number. Solution: Add argument type checks. (closes #7759)
2021-01-22patch 8.2.2394: Vim9: min() and max() return type is "any"v8.2.2394Bram Moolenaar
Problem: Vim9: min() and max() return type is "any". Solution: Use return type "number". (closes #7728)
2021-01-21patch 8.2.2387: runtime type check does not mention argument indexv8.2.2387Bram Moolenaar
Problem: Runtime type check does not mention argument index. Solution: Add ct_arg_idx. (closes #7720)
2021-01-17patch 8.2.2369: Vim9: functions return true/false but can't be used as boolv8.2.2369Bram Moolenaar
Problem: Vim9: functions return true/false but can't be used as bool. Solution: Add ret_number_bool(). (closes #7693)
2021-01-16patch 8.2.2365: Vim9: no check for map() changing item type at script levelv8.2.2365Bram Moolenaar
Problem: Vim9: no check for map() changing item type at script level. Solution: Check the new value type.
2021-01-16patch 8.2.2362: Vim9: check of builtin function argument type is incompletev8.2.2362Bram Moolenaar
Problem: Vim9: check of builtin function argument type is incomplete. Solution: Use need_type() instead of check_arg_type().
2021-01-13patch 8.2.2344: using inclusive index for slice is not always desiredv8.2.2344Bram Moolenaar
Problem: Using inclusive index for slice is not always desired. Solution: Add the slice() method, which has an exclusive index. (closes #7408)
2021-01-13patch 8.2.2343: Vim9: return type of readfile() is anyv8.2.2343Bram Moolenaar
Problem: Vim9: return type of readfile() is any. Solution: Add readblob() so that readfile() can be expected to always return a list of strings. (closes #7671)
2021-01-12patch 8.2.2340: win_execute() unexpectedly returns number zero when failingv8.2.2340Bram Moolenaar
Problem: win_execute() unexpectedly returns number zero when failing. Solution: Return an empty string. (closes #7665)
2021-01-12patch 8.2.2339: cannot get the type of a value as a stringv8.2.2339Bram Moolenaar
Problem: Cannot get the type of a value as a string. Solution: Add typename().
2021-01-12patch 8.2.2338: Vim9: no error if using job_info() result wronglyv8.2.2338Bram Moolenaar
Problem: Vim9: no error if using job_info() result wrongly. Solution: Adjust return type on number of arguments. (closes #7667)
2021-01-12patch 8.2.2336: Vim9: not possible to extend dictionary with different typev8.2.2336Bram Moolenaar
Problem: Vim9: it is not possible to extend a dictionary with different item types. Solution: Add extendnew(). (closes #7666)
2021-01-10patch 8.2.2325: Vim9: crash if map() changes the item typev8.2.2325Bram Moolenaar
Problem: Vim9: crash if map() changes the item type. Solution: Check that the item type is still OK. (closes #7652) Fix problem with mapnew() on range list.
2021-01-07patch 8.2.2310: Vim9: winsaveview() return type is too genericv8.2.2310Bram Moolenaar
Problem: Vim9: winsaveview() return type is too generic. Solution: use dict<number> instead of dict<any>. (closes #7626)
2021-01-03patch 8.2.2285: Vim9: cannot set an option to a falsev8.2.2285Bram Moolenaar
Problem: Vim9: cannot set an option to a false. Solution: For VAR_BOOL use string "0". (closes #7603)
2021-01-03patch 8.2.2284: Vim9: cannot set an option to a boolean valuev8.2.2284Bram Moolenaar
Problem: Vim9: cannot set an option to a boolean value. Solution: Check for VAR_BOOL. (closes #7603)
2021-01-02patch 8.2.2272: Vim9: extend() can violate the type of a variablev8.2.2272Bram Moolenaar
Problem: Vim9: extend() can violate the type of a variable. Solution: Add the type to the dictionary or list and check items against it. (closes #7593)
2020-12-31patch 8.2.2257: Vim9: using -> for lambda is ambiguousv8.2.2257Bram Moolenaar
Problem: Vim9: using -> for lambda is ambiguous. Solution: Stop supporting ->, must use =>.
2020-12-29patch 8.2.2245: Vim9: return value of winrestcmd() cannot be executedv8.2.2245Bram Moolenaar
Problem: Vim9: return value of winrestcmd() cannot be executed. Solution: Put colons before each range. (closes #7571)
2020-12-25patch 8.2.2218: Vim9: failure if passing more args to lambda than expectedv8.2.2218Bram Moolenaar
Problem: Vim9: failure if passing more arguments to a lambda than expected. Solution: Only put expected arguments on the stack. (closes #7548)
2020-12-21patch 8.2.2184: Vim9: no error when using "2" for a line numberv8.2.2184Bram Moolenaar
Problem: Vim9: no error when using "2" for a line number. Solution: Give an error message if the line number is invalid. (closes #7492)
2020-12-12patch 8.2.2133: Vim9: checking for a non-empty string is too strictv8.2.2133Bram Moolenaar
Problem: Vim9: checking for a non-empty string is too strict. Solution: Check for any string. (closes #7447)
2020-12-09patch 8.2.2117: some functions use any value as a stringv8.2.2117Bram Moolenaar
Problem: Some functions use any value as a string. Solution: Check that the value is a non-empty string.
2020-12-05patch 8.2.2098: Vim9: function argument of sort() and map() not testedv8.2.2098Bram Moolenaar
Problem: Vim9: function argument of sort() and map() not tested. Solution: Add a couple of tests.
2020-12-02patch 8.2.2082: Vim9: can still use the depricated #{} dict syntaxv8.2.2082Bram Moolenaar
Problem: Vim9: can still use the depricated #{} dict syntax. Solution: Remove support for #{} in Vim9 script. (closes #7406, closes #7405)
2020-11-19patch 8.2.2015: Vim9: literal dict #{} is not like any other languagev8.2.2015Bram Moolenaar
Problem: Vim9: literal dict #{} is not like any other language. Solution: Support the JavaScript syntax.
2020-11-16patch 8.2.1996: Vim9: invalid error for argument of extend()v8.2.1996Bram Moolenaar
Problem: Vim9: invalid error for argument of extend(). Solution: Check if the type could match. (closes #7299)
2020-10-31patch 8.2.1931: Vim9: arguments of extend() not checked at compile timev8.2.1931Bram Moolenaar
Problem: Vim9: arguments of extend() not checked at compile time. Solution: Add argument type checking for extend().
2020-10-22patch 8.2.1888: Vim9: getbufline(-1, 1, '$') gives an errorv8.2.1888Bram Moolenaar
Problem: Vim9: Getbufline(-1, 1, '$') gives an error. Solution: Return an empty list. (closes #7180)
2020-10-21patch 8.2.1879: Vim9: argument types of insert() not checked when compilingv8.2.1879Bram Moolenaar
Problem: Vim9: argument types of insert() not checked when compiling. Solution: Add argument type checks for insert().
2020-10-21patch 8.2.1876: Vim9: argument types are not checked at compile timev8.2.1876Bram Moolenaar
Problem: Vim9: argument types for builtin functions are not checked at compile time. Solution: Add an argument type checking mechanism. Implement type checks for one function.