Age | Commit message (Collapse) | Author |
|
Problem: Vim9: flatten() always changes the list type.
Solution: Disallow using flatten() and add flattennew().
|
|
Problem: Vim9: no compile time error for wrong str2float argument.
Solution: Check argument type. (closes #7759)
|
|
Problem: Vim9: extend() does not give an error for a type mismatch.
Solution: Check the type of the second argument. (closes #7760)
|
|
Problem: setline() gives an error for some types.
Solution: Allow any type, convert each item to a string.
|
|
Problem: Vim9: no error when compiling str2nr() with a number.
Solution: Add argument type checks. (closes #7759)
|
|
Problem: Vim9: min() and max() return type is "any".
Solution: Use return type "number". (closes #7728)
|
|
Problem: Runtime type check does not mention argument index.
Solution: Add ct_arg_idx. (closes #7720)
|
|
Problem: Vim9: functions return true/false but can't be used as bool.
Solution: Add ret_number_bool(). (closes #7693)
|
|
Problem: Vim9: no check for map() changing item type at script level.
Solution: Check the new value type.
|
|
Problem: Vim9: check of builtin function argument type is incomplete.
Solution: Use need_type() instead of check_arg_type().
|
|
Problem: Using inclusive index for slice is not always desired.
Solution: Add the slice() method, which has an exclusive index. (closes
#7408)
|
|
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)
|
|
Problem: win_execute() unexpectedly returns number zero when failing.
Solution: Return an empty string. (closes #7665)
|
|
Problem: Cannot get the type of a value as a string.
Solution: Add typename().
|
|
Problem: Vim9: no error if using job_info() result wrongly.
Solution: Adjust return type on number of arguments. (closes #7667)
|
|
Problem: Vim9: it is not possible to extend a dictionary with different
item types.
Solution: Add extendnew(). (closes #7666)
|
|
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.
|
|
Problem: Vim9: winsaveview() return type is too generic.
Solution: use dict<number> instead of dict<any>. (closes #7626)
|
|
Problem: Vim9: cannot set an option to a false.
Solution: For VAR_BOOL use string "0". (closes #7603)
|
|
Problem: Vim9: cannot set an option to a boolean value.
Solution: Check for VAR_BOOL. (closes #7603)
|
|
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)
|
|
Problem: Vim9: using -> for lambda is ambiguous.
Solution: Stop supporting ->, must use =>.
|
|
Problem: Vim9: return value of winrestcmd() cannot be executed.
Solution: Put colons before each range. (closes #7571)
|
|
Problem: Vim9: failure if passing more arguments to a lambda than expected.
Solution: Only put expected arguments on the stack. (closes #7548)
|
|
Problem: Vim9: no error when using "2" for a line number.
Solution: Give an error message if the line number is invalid. (closes #7492)
|
|
Problem: Vim9: checking for a non-empty string is too strict.
Solution: Check for any string. (closes #7447)
|
|
Problem: Some functions use any value as a string.
Solution: Check that the value is a non-empty string.
|
|
Problem: Vim9: function argument of sort() and map() not tested.
Solution: Add a couple of tests.
|
|
Problem: Vim9: can still use the depricated #{} dict syntax.
Solution: Remove support for #{} in Vim9 script. (closes #7406, closes #7405)
|
|
Problem: Vim9: literal dict #{} is not like any other language.
Solution: Support the JavaScript syntax.
|
|
Problem: Vim9: invalid error for argument of extend().
Solution: Check if the type could match. (closes #7299)
|
|
Problem: Vim9: arguments of extend() not checked at compile time.
Solution: Add argument type checking for extend().
|
|
Problem: Vim9: Getbufline(-1, 1, '$') gives an error.
Solution: Return an empty list. (closes #7180)
|
|
Problem: Vim9: argument types of insert() not checked when compiling.
Solution: Add argument type checks for insert().
|
|
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.
|