Bram Moolenaar
7a22224875
patch 8.2.4487: Vim9: cannot compare with v:null
...
Problem: Vim9: cannot compare with v:null.
Solution: Allow comparing anything with v:null. (closes #9866 )
2022-03-01 19:23:24 +00:00
Bram Moolenaar
1983f1aa31
patch 8.2.4484: Vim9: some error messages are not tested
...
Problem: Vim9: some error messages are not tested.
Solution: Add a few more test cases. Delete dead code.
2022-02-28 20:55:02 +00:00
=?UTF-8?q?Dundar=20G=C3=B6c?=
e41c1dd889
patch 8.2.4476: operator name spelled wrong
...
Problem: Operator name spelled wrong.
Solution: Change trinary to ternary. (Goc Dundar, closes #9850 )
2022-02-26 11:46:13 +00:00
Bram Moolenaar
0c7f2610de
patch 8.2.4410: Vim9: some code not covered by tests
...
Problem: Vim9: some code not covered by tests.
Solution: Add a few more tests. Remove dead code.
2022-02-17 19:44:07 +00:00
Bram Moolenaar
a749a42ed2
patch 8.2.4360: Vim9: allowing use of "s:" leads to inconsistencies
...
Problem: Vim9: allowing use of "s:" leads to inconsistencies.
Solution: Disallow using "s:" in Vim9 script at the script level.
2022-02-12 19:52:25 +00:00
Bram Moolenaar
83d0cec956
patch 8.2.4296: Vim9: not all code covered by tests
...
Problem: Vim9: not all code covered by tests.
Solution: Add a few more tests for corner cases. Fix hang when single quote
is missing.
2022-02-04 21:17:58 +00:00
Bram Moolenaar
46950b225f
patch 8.2.4295: Vim9: concatenating two lists may result in wrong type
...
Problem: Vim9: concatenating two lists may result in wrong type.
Solution: Remove the type instead of using list<any>. (closes #9692 )
2022-02-04 11:36:51 +00:00
Bram Moolenaar
7676c15879
patch 8.2.4293: Vim9: when copying a list it gets type list<any>
...
Problem: Vim9: when copying a list it gets type list<any> even when the
original list did not have a type.
Solution: Only set the type when the original list has a type. (closes #9692 )
2022-02-03 21:47:34 +00:00
Bram Moolenaar
eb6c276595
patch 8.2.4272: Vim9 expr test fails without the channel feature
...
Problem: Vim9 expr test fails without the channel feature. (Dominique
Pellé)
Solution: Remove "g:" before "CheckFeature". (closes #9671 )
2022-01-31 13:36:36 +00:00
Bram Moolenaar
848faddb87
patch 8.2.4260: Vim9: can still use a global function without g:
...
Problem: Vim9: can still use a global function without g: at the script
level.
Solution: Also check for g: at the script level. (issue #9637 )
2022-01-30 15:28:30 +00:00
Bram Moolenaar
62aec93bfd
patch 8.2.4257: Vim9: finding global function without g: prefix inconsistent
...
Problem: Vim9: finding global function without g: prefix but not finding
global variable is inconsistent.
Solution: Require using g: for a global function. Change the vim9.vim
script into a Vim9 script with exports. Fix that import in legacy
script does not work.
2022-01-29 21:45:34 +00:00
Bram Moolenaar
64283d5e1f
patch 8.2.4128: crash when method cannot be found
...
Problem: Crash when method cannot be found. (Christian J. Robinson)
Solution: Don't mix up pointer names.
2022-01-18 10:37:29 +00:00
Bram Moolenaar
6389baa669
patch 8.2.4124: Vim9: method in compiled function may not see script item
...
Problem: Vim9: method in compiled function may not see script item.
Solution: Make sure not to skip to the next line. (closes #9496 )
2022-01-17 20:50:40 +00:00
Bram Moolenaar
c73499351a
patch 8.2.4116: Vim9: cannot use a method with a complex expression in :def
...
Problem: Vim9: cannot use a method with a complex expression in a :def
function.
Solution: Implement compiling the expression.
2022-01-16 20:59:39 +00:00
Bram Moolenaar
c665dabdf4
patch 8.2.4115: cannot use a method with a complex expression
...
Problem: Cannot use a method with a complex expression.
Solution: Evaluate the expression after "->" and use the result.
2022-01-16 19:38:07 +00:00
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