Bram Moolenaar
d0132f4862
patch 8.2.4940: some code is never used
...
Problem: Some code is never used.
Solution: Remove dead code. Add a few more test cases.
2022-05-12 11:05:40 +01:00
Bram Moolenaar
70c41241c2
patch 8.2.4934: string interpolation fails when not evaluating
...
Problem: String interpolation fails when not evaluating.
Solution: Skip the expression when not evaluating. (closes #10398 )
2022-05-10 18:11:43 +01:00
Bram Moolenaar
933c2922b5
patch 8.2.4914: string interpolation in :def function may fail
...
Problem: String interpolation in :def function may fail.
Solution: Do not terminate the expression. (closes #10377 )
2022-05-08 16:37:07 +01:00
Dominique Pelle
801c3c1dbe
patch 8.2.4900: Vim9 expression test fails without the job feature
...
Problem: Vim9 expression test fails without the job feature.
Solution: Add a check for the job feature. (Dominique Pellé, closes #10373 )
2022-05-07 11:00:08 +01:00
Bram Moolenaar
ec89223478
patch 8.2.4892: test failures because of changed error messages
...
Problem: Test failures because of changed error messages.
Solution: Adjust the exptected error messages.
2022-05-06 17:53:06 +01:00
Bram Moolenaar
06651630ee
patch 8.2.4834: Vim9: some lines not covered by tests
...
Problem: Vim9: some lines not covered by tests.
Solution: Add a few more tests. Remove dead code.
2022-04-27 17:54:25 +01:00
Bram Moolenaar
0d1f55c044
patch 8.2.4697: Vim9: crash when adding a duplicate key to a dictionary
...
Problem: Vim9: crash when adding a duplicate key to a dictionary.
Solution: Clear the stack item when it has been moved into the dictionary.
(closes #10087 )
2022-04-05 17:30:29 +01:00
Bram Moolenaar
a6c18d38ca
patch 8.2.4657: errors for functions are sometimes hard to read
...
Problem: Errors for functions are sometimes hard to read.
Solution: Use printable_func_name() in more places.
2022-03-31 20:02:56 +01:00
Bram Moolenaar
859cc21c6b
patch 8.2.4642: Vim9: in :def function script var cannot be null
...
Problem: Vim9: in :def function script var cannot be null.
Solution: Only initialize a script variable when not set to a null value.
(closes #10034 )
2022-03-28 15:22:35 +01:00
Bram Moolenaar
ec15b1cfdc
patch 8.2.4634: Vim9: cannot initialize a variable to null_list
...
Problem: Vim9: cannot initialize a variable to null_list.
Solution: Give negative count to NEWLIST. (closes #10027 )
Also fix inconsistencies in comparing with null values.
2022-03-27 16:29:53 +01:00
Dominique Pelle
81b573d7e5
patch 8.2.4611: typos in tests; one lua line not covered by test
...
Problem: Typos in tests; one lua line not covered by test.
Solution: Fix typos. Add test case. (Dominique Pellé, closes #9994 )
2022-03-22 21:14:55 +00:00
Bram Moolenaar
397a87ac1c
patch 8.2.4602: Vim9: not enough test coverage for executing :def function
...
Problem: Vim9: not enough test coverage for executing :def function.
Solution: Add a few more tests. Fix uncovered problem. Remove dead code.
2022-03-20 21:14:15 +00:00
Bram Moolenaar
d597ab00d7
patch 8.2.4581: null types not fully tested
...
Problem: Null types not fully tested.
Solution: Add some more tests using null types.
2022-03-16 17:56:33 +00:00
Bram Moolenaar
056678184f
patch 8.2.4576: Vim9: error for comparing with null can be annoying
...
Problem: Vim9: error for comparing with null can be annoying.
Solution: Allow comparing anything with null. (closes #9948 )
2022-03-15 20:21:33 +00:00
Bram Moolenaar
1b1df95f1a
patch 8.2.4540: line number for error is off by one
...
Problem: Line number for error is off by one.
Solution: Remember the line number of the comparison. (closes #9923 )
2022-03-10 20:01:50 +00:00
Bram Moolenaar
53ba6ca5b2
patch 8.2.4539: when comparing special v:none and v:null are handled the same
...
Problem: When comparing special v:none and v:null are handled the same when
compiling.
Solution: Pass more information so that v:none can be handled differently at
compile time. (issue #9923 )
2022-03-10 19:23:28 +00:00
Bram Moolenaar
f8691004b0
patch 8.2.4534: Vim9: "is" operator with empty string and null returns true
...
Problem: Vim9: "is" operator with empty string and null returns true.
Solution: Consider empty string and null to be different for "is".
2022-03-10 12:20:53 +00:00
Bram Moolenaar
ed0c62e7b1
patch 8.2.4529: Vim9: comparing partial with function fails
...
Problem: Vim9: comparing partial with function fails.
Solution: Support this comparison. Avoid a crash. (closes #9909 )
Add more test cases.
2022-03-08 19:43:55 +00:00
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