Bram Moolenaar
c84287d6d8
patch 8.2.4114: Vim9: type checking for a funcref does not work for method
...
Problem: Vim9: type checking for a funcref does not work for when it is
used in a method.
Solution: Pass the base to where the type is checked.
2022-01-16 18:06:21 +00:00
Bram Moolenaar
5e6b9882fe
patch 8.2.4055: Vim9: line break in expression causes v:errmsg to be fillec
...
Problem: Vim9: line break in expression causes v:errmsg to be filled.
(Yegappan Lakshmanan)
Solution: Do not give an error when skipping over an expression.
2022-01-10 18:50:52 +00:00
Bram Moolenaar
5f25c38550
patch 8.2.4049: Vim9: reading before the start of the line with "$"
...
Problem: Vim9: reading before the start of the line with "$" by itself.
Solution: Do not subtract one when reporting the error.
2022-01-09 13:36:28 +00:00
Bram Moolenaar
1802405d71
patch 8.2.3897: Vim9: second argument of map() and filter() not checked
...
Problem: Vim9: the second argument of map() and filter() is not checked at
compile time.
Solution: Add more specific type check for the second argument.
2021-12-25 21:43:28 +00:00
Bram Moolenaar
d787e40fdb
patch 8.2.3890: Vim9: type check for using v: variables is basic
...
Problem: Vim9: type check for using v: variables is basic.
Solution: Specify a more precise type.
2021-12-24 21:36:12 +00:00
Bram Moolenaar
28fbbeac70
patch 8.2.3877: function does not abort after a type error in compare
...
Problem: Function does not abort after a type error in compare
Solution: Check getting number fails. (closes #9384 )
2021-12-22 21:40:33 +00:00
Bram Moolenaar
86b3ab4fa0
patch 8.2.3854: Vim9: inconsistent arguments for test functions
...
Problem: Vim9: inconsistent arguments for test functions.
Solution: When :def function and script have different arguments use a list
with two items instead of a separate function.
2021-12-19 18:33:23 +00:00
Bram Moolenaar
259f443a93
patch 8.2.3835: the inline-function example does not work
...
Problem: The inline-function example does not work.
Solution: Drop ":let". Add EX_EXPR_ARG to CMD_var. (issue #9352 )
2021-12-17 12:45:22 +00:00
Bram Moolenaar
ce7eada12e
patch 8.2.3815: Vim9: cannot have a multi-line dict inside a block
...
Problem: Vim9: cannot have a multi-line dict inside a block.
Solution: Do not split the command at a line break, handle NL characters
as white space.
2021-12-15 15:41:44 +00:00
Bram Moolenaar
b334137acf
patch 8.2.3810: Vim9: expr4 test fails on MS-Windows
...
Problem: Vim9: expr4 test fails on MS-Windows.
Solution: Do not give an error for a missing function name when skipping.
2021-12-14 18:57:45 +00:00
Bram Moolenaar
cd6b4f3001
patch 8.2.3353: Vim9: type of argument for negate not checked at compile time
...
Problem: Vim9: type of argument for negate not checked at compile time.
Solution: Add a compile time check.
2021-08-15 20:36:28 +02:00
Bram Moolenaar
dae453f339
patch 8.2.3311: Vim9: check for DO_NOT_FREE_CNT is very slow
...
Problem: Vim9: check for DO_NOT_FREE_CNT is very slow.
Solution: Move to a separate function so it can be skipped by setting
$TEST_SKIP_PAT.
2021-08-07 17:20:16 +02:00
Bram Moolenaar
fbeefb1b87
patch 8.2.3309: Vim9: divide by zero causes a crash
...
Problem: Vim9: divide by zero causes a crash.
Solution: Give an error message. (closes #8727 )
2021-08-07 15:50:23 +02:00
Bram Moolenaar
d47c39775b
patch 8.2.3238: Vim9: error message does not indicate the location
...
Problem: Vim9: error message does not indicate the location.
Solution: Add the relevant text. (issue #8634 )
2021-07-28 20:52:13 +02:00
Bram Moolenaar
05bd9785fd
patch 8.2.3196: Vim9: bool expression with numbers only fails at runtime
...
Problem: Vim9: bool expression with numbers only fails at runtime.
Solution: Check constant to be bool at compile time. (closes #8603 )
2021-07-21 21:37:28 +02:00
Bram Moolenaar
ac2cd2b08f
patch 8.2.3185: Vim9: start of inline function found in comment line
...
Problem: Vim9: start of inline function found in comment line.
Solution: Do not check for inline function in comment line. (closes #8589 )
2021-07-19 21:04:23 +02:00
Bram Moolenaar
0c35752d04
patch 8.2.3176: Vim9: no type error for comparing number with string
...
Problem: Vim9: no type error for comparing number with string.
Solution: Add a runtime type check. (closes #8571 )
2021-07-18 14:43:43 +02:00
Bram Moolenaar
5245beb37c
patch 8.2.3169: Vim9: cannot handle nested inline function
...
Problem: Vim9: cannot handle nested inline function.
Solution: Check for nested inline function. (closes #8575 )
2021-07-15 22:03:50 +02:00
Bram Moolenaar
9e60e899ee
patch 8.2.3165: Vim9: in a || expression the error line number may be wrong
...
Problem: Vim9: in a || expression the error line number may be wrong.
Solution: Save and restore the line number when checking the type.
(closes #8569 )
2021-07-15 15:40:58 +02:00
Yegappan Lakshmanan
1a71d31bf3
patch 8.2.3162: Vim9: argument types are not checked at compile time
...
Problem: Vim9: argument types are not checked at compile time.
Solution: Add more type checks. (Yegappan Lakshmanan, closes #8560 )
2021-07-15 12:49:58 +02:00
Bram Moolenaar
11005b078d
patch 8.2.3152: Vim9: accessing "s:" results in an error
...
Problem: Vim9: accessing "s:" results in an error.
Solution: Do not try to lookup a script variable for "s:". (closes #8549 )
2021-07-11 20:59:00 +02:00
Bram Moolenaar
c323527d67
patch 8.2.3137: Vim9: no error when a line only has a variable name
...
Problem: Vim9: no error when a line only has a variable name.
Solution: Give an error when an expression is evaluated without an effect.
(closes #8538 )
2021-07-10 19:42:03 +02:00
Bram Moolenaar
7a40ff00ed
patch 8.2.3100: Vim9: no error when using type with unknown number of args
...
Problem: Vim9: no error when using type with unknown number of arguments.
Solution: Do not ignore argument count of -1. (closes #8492 )
2021-07-04 15:54:08 +02:00
Yegappan Lakshmanan
a26f56f675
patch 8.2.3084: Vim9: builtin function argument types are not checked
...
Problem: Vim9: builtin function argument types are not checked at compile
time.
Solution: Add argument types. (Yegappan Lakshmanan, closes #8503 )
2021-07-03 11:58:12 +02:00
thinca
6864efa596
patch 8.2.3019: location list only has the start position.
...
Problem: Location list only has the start position.
Solution: Make it possible to add an end position. (Shane-XB-Qian,
closes #8393 )
2021-06-19 20:45:20 +02:00
Bram Moolenaar
fae55a9cb0
patch 8.2.3016: confusing error when expression is followed by comma
...
Problem: Confusing error when expression is followed by comma.
Solution: Give a different error for trailing text. (closes #8395 )
2021-06-17 22:08:30 +02:00
Bram Moolenaar
f57b43c230
patch 8.2.3005: Vim9: using a void value does not give a proper error message
...
Problem: Vim9: using a void value does not give a proper error message.
Solution: Give a clear error message. (clodes #8387 )
2021-06-15 22:13:27 +02:00
Bram Moolenaar
a733042b12
patch 8.2.2964: Vim9: hang when using space after ->
...
Problem: Vim9: hang when using space after ->. (Naohiro Ono)
Solution: Skip over white space to find the function name. (closes #8341 )
2021-06-08 20:46:45 +02:00
Bram Moolenaar
5fa9b24440
patch 8.2.2936: Vim9: converting number to bool uses wrong stack offset
...
Problem: Vim9: converting number to bool uses wrong stack offset. (Salman
Halim)
Solution: Include the offset in the 2BOOL command.
2021-06-04 21:00:32 +02:00
mityu
4ac198c61c
patch 8.2.2895: Vim9: random characters appear in some error messages
...
Problem: Vim9: random characters appear in some error messages.
Solution: Pass the correct pointer. (closes #8277 )
2021-05-28 17:52:40 +02:00
mityu
89dcb4dce3
patch 8.2.2892: error message contains random characters
...
Problem: Error message contains random characters.
Solution: Pass the right pointer to error_white_both(). (closes #8272 ,
closes #8263 )
2021-05-28 13:50:17 +02:00
Yegappan Lakshmanan
34fcb69724
patch 8.2.2886: various pieces of code not covered by tests
...
Problem: Various pieces of code not covered by tests.
Solution: Add a few more tests. (Yegappan Lakshmanan, closes #8255 )
2021-05-25 20:14:00 +02:00
Yegappan Lakshmanan
611728f806
patch 8.2.2881: various pieces of code not covered by tests
...
Problem: Various pieces of code not covered by tests.
Solution: Add a few more tests. (Yegappan Lakshmanan, closes #8245 )
2021-05-24 15:15:47 +02:00
Bram Moolenaar
3b1373b193
patch 8.2.2861: Vim9: "legacy return" is not recognized as a return statement
...
Problem: Vim9: "legacy return" is not recognized as a return statement.
Solution: Specifically check for a return command. (closes #8213 )
2021-05-17 00:01:42 +02:00
Bram Moolenaar
261417b872
patch 8.2.2840: Vim9: member operation not fully tested
...
Problem: Vim9: member operation not fully tested.
Solution: Add a few tests.
2021-05-06 21:04:55 +02:00
Bram Moolenaar
03717bf6a2
patch 8.2.2816: Vim9: comment below expression in lambda causes problems
...
Problem: Vim9: comment below expression in lambda causes problems.
Solution: Use a single space for empty and comment lines. (closes #8156 )
2021-04-28 20:00:40 +02:00
Bram Moolenaar
bdc0f1c698
patch 8.2.2806: Vim9: using "++nr" as a command might not work
...
Problem: Vim9: using "++nr" as a command might not work.
Solution: Do not recognize "++" and "--" in a following line as addition or
subtraction.
2021-04-24 19:08:24 +02:00
Bram Moolenaar
459fbdbf92
patch 8.2.2799: Vim9: type casts don't fully work at the script level
...
Problem: Vim9: type casts don't fully work at the script level.
Solution: Implement the missing piece.
2021-04-21 17:57:26 +02:00
Bram Moolenaar
cfc3023cb6
patch 8.2.2756: Vim9: blob index and slice not implemented yet
...
Problem: Vim9: blob index and slice not implemented yet.
Solution: Implement blob index and slice.
2021-04-11 20:26:34 +02:00
Bram Moolenaar
af8ea0d066
patch 8.2.2755: Vim9: no error for using a number in a condition
...
Problem: Vim9: no error for using a number in a condition.
Solution: Also use ISN_COND2BOOL if the type is t_number_bool.
(closes #7644 )
2021-04-11 18:24:46 +02:00
Bram Moolenaar
fa5963880d
patch 8.2.2735: Vim9: function reference found with prefix, not without
...
Problem: Vim9: function reference found with prefix, not without.
Solution: Also find function reference without prefix.
2021-04-07 21:58:16 +02:00
Bram Moolenaar
15e5e53ef2
patch 8.2.2734: Vim9: cannot use legacy script-local var from :def function
...
Problem: Vim9: cannot use legacy script-local var from :def function.
Solution: Do not insist on using "s:" prefix. (closes #8076 )
2021-04-07 21:21:13 +02:00
Bram Moolenaar
2927c07b0e
patch 8.2.2721: Vim9: cannot have a linebreak inside a lambda
...
Problem: Vim9: cannot have a linebreak inside a lambda.
Solution: Compile the expression before the arguments.
2021-04-05 19:41:21 +02:00
Bram Moolenaar
886e5e737d
patch 8.2.2715: Vim9: tests fail without the channel feature
...
Problem: Vim9: tests fail without the channel feature. (Dominique Pellé)
Solution: Check for the channel feature. (closes #8063 )
2021-04-05 13:36:34 +02:00
Bram Moolenaar
90193e6140
patch 8.2.2710: Vim9: not all tests cover script and :def function
...
Problem: Vim9: not all tests cover script and :def function.
Solution: Run tests in both if possible. Fix differences.
2021-04-04 20:49:50 +02:00
Bram Moolenaar
a7511c0f4f
patch 8.2.2706: Vim9: wrong line number reported for boolean operator
...
Problem: Vim9: wrong line number reported for boolean operator.
Solution: Use the line number before skipping over line break.
(closes #8058 )
2021-04-03 21:47:07 +02:00
Bram Moolenaar
49f1e9ec3e
patch 8.2.2645: using inline function is not properly tested
...
Problem: Using inline function is not properly tested.
Solution: Add test cases, esp. for errors. Minor code improvements.
2021-03-22 20:49:02 +01:00
Bram Moolenaar
e98f60a591
patch 8.2.2642: Vim9: no clear error for wrong inline function
...
Problem: Vim9: no clear error for wrong inline function.
Solution: Check for something following the "{".
2021-03-22 18:22:30 +01:00
Bram Moolenaar
7a6eaa06f9
patch 8.2.2635: Vim9: cannot define an inline function
...
Problem: Vim9: cannot define an inline function.
Solution: Make an inline function mostly work.
2021-03-21 20:53:29 +01:00
Bram Moolenaar
a0399efa72
patch 8.2.2629: Vim9: error for #{{ is not desired
...
Problem: Vim9: error for #{{ is not desired.
Solution: Adjust the checks. (closes #7990 )
2021-03-20 15:00:01 +01:00