Yegappan Lakshmanan
668971958c
patch 9.0.2152: Using type unknown for List/Dict containers
...
Problem: Using type unknown for List/Dict containers
Solution: Use 'any' instead
fixes : #13582
closes : #13625
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com >
Signed-off-by: Christian Brabandt <cb@256bit.org >
2023-12-05 15:51:50 +01:00
Bram Moolenaar
94722c5107
patch 9.0.1257: code style is not check in test scripts
...
Problem: Code style is not check in test scripts.
Solution: Add basic code style check for test files.
2023-01-28 19:19:03 +00:00
h-east
01c5f2addf
patch 9.0.1164: evaluating string expression advances function line
...
Problem: Evaluating string expression advances function line.
Solution: Disable function lines while parsing a string expression.
(Hirohito Higashi, closes #11796 )
2023-01-09 15:10:40 +00:00
Bram Moolenaar
c6951a76a5
patch 9.0.1108: type error when using "any" type and adding to float
...
Problem: Type error when using "any" type and adding a number to a float.
Solution: Accept both a number and a float. (closes #11753 )
2022-12-29 20:56:24 +00:00
Bram Moolenaar
73ade49c4b
patch 9.0.1107: float constant not recognized as float
...
Problem: Float constant not recognized as float.
Solution: Check the vartype instead of comparing with t_float.
(closes #11754 )
2022-12-27 20:54:41 +00:00
Yegappan Lakshmanan
4c8d2f02b3
patch 9.0.0863: col() and charcol() only work for the current window
...
Problem: col() and charcol() only work for the current window.
Solution: Add an optional winid argument. (Yegappan Lakshmanan,
closes #11466 , closes #11461 )
2022-11-12 16:07:47 +00:00
Bram Moolenaar
adbc08fd69
patch 9.0.0840: cannot change a slice of a const list
...
Problem: Cannot change a slice of a const list. (Takumi KAGIYAMA)
Solution: Remove the const flag from the slice type. (closes #11490 )
2022-11-06 18:27:17 +00:00
Bram Moolenaar
4913d420e8
patch 9.0.0778: indexing of unknown const type fails during compilation
...
Problem: Indexing of unknown const type fails during compilation.
Solution: Check for "any" properly. (closes #11389 )
2022-10-17 13:13:32 +01:00
Bram Moolenaar
0e9bdad545
patch 9.0.0766: too many delete() calls in tests
...
Problem: Too many delete() calls in tests.
Solution: Use deferred delete where possible.
2022-10-15 20:06:33 +01:00
Bram Moolenaar
73e28dcc61
patch 9.0.0491: no good reason to build without the float feature
...
Problem: No good reason to build without the float feature.
Solution: Remove configure check for float and "#ifdef FEAT_FLOAT".
2022-09-17 21:08:33 +01:00
Bram Moolenaar
2984ed31d9
patch 9.0.0230: no error for comma missing in list in :def function
...
Problem: No error for comma missing in list in :def function.
Solution: Check for missing comma. (closes #10943 )
2022-08-20 14:51:17 +01:00
Bram Moolenaar
25f40af9d2
patch 9.0.0150: error for using #{ in an expression is a bit confusing
...
Problem: Error for using #{ in an expression is a bit confusing.
Solution: Mention that this error is only given for an expression.
Avoid giving the error more than once. (closes #10855 )
2022-08-06 11:35:28 +01:00
Yegappan Lakshmanan
a061f34191
patch 8.2.5003: cannot do bitwise shifts
...
Problem: Cannot do bitwise shifts.
Solution: Add the >> and << operators. (Yegappan Lakshmanan, closes #8457 )
2022-05-22 19:13:49 +01:00
Bram Moolenaar
1ff9c44267
patch 8.2.4972: Vim9: compilation fails when using dict member when skipping
...
Problem: Vim9: compilation fails when using dict member when skipping.
Solution: Do not generate ISN_USEDICT when skipping. (closes #10433 )
2022-05-17 15:03:33 +01:00
Bram Moolenaar
40c141d333
patch 8.2.4971: Vim9: interpolated string seen as range
...
Problem: Vim9: interpolated string seen as range.
Solution: Recognize an interpolated string at the start of a command line.
(closes #10434 )
2022-05-17 13:14:23 +01:00
Bram Moolenaar
31ad32a325
patch 8.2.4949: Vim9: some code not covered by tests
...
Problem: Vim9: some code not covered by tests.
Solution: Add a few more test cases. Fix double error message.
2022-05-13 16:23:37 +01:00
Bram Moolenaar
7f8a3b11bf
patch 8.2.4946: Vim9: some code not covered by tests
...
Problem: Vim9: some code not covered by tests.
Solution: Add a few more test cases. Remove dead code.
2022-05-12 22:03:01 +01:00
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