Bram Moolenaar
2949cfdbe4
patch 8.2.2257: Vim9: using -> for lambda is ambiguous
...
Problem: Vim9: using -> for lambda is ambiguous.
Solution: Stop supporting ->, must use =>.
2020-12-31 21:28:47 +01:00
Bram Moolenaar
dd1f426bd6
patch 8.2.2254: Vim9: bool option type is number
...
Problem: Vim9: bool option type is number.
Solution: Have get_option_value() return a different value for bool and
number options. (closes #7583 )
2020-12-31 17:41:01 +01:00
Bram Moolenaar
c754b4cc98
patch 8.2.2212: Vim9: lambda with => does not work at the script level
...
Problem: Vim9: lambda with => does not work at the script level.
Solution: Make it work.
2020-12-25 15:24:23 +01:00
Bram Moolenaar
89b474dd4f
patch 8.2.2194: Vim9: cannot use :const or :final at the script level
...
Problem: Vim9: cannot use :const or :final at the script level.
Solution: Support using :const and :final. (closes #7526 )
2020-12-22 21:19:39 +01:00
Bram Moolenaar
4f5e397756
patch 8.2.2179: Vim9: crash when indexing a dict with a number
...
Problem: Vim9: crash when indexing a dict with a number.
Solution: Add ISN_STOREINDEX. (closes #7513 )
2020-12-21 17:30:50 +01:00
Bram Moolenaar
d24602f43c
patch 8.2.2168: Vim9: error for assigning to dict of dict
...
Problem: Vim9: error for assigning to dict of dict.
Solution: Remember the destination type. (closes #7506 )
2020-12-20 15:20:56 +01:00
Bram Moolenaar
d88dc4d4e9
patch 8.2.2167: Vim9: assign test fails
...
Problem: Vim9: assign test fails. (Elimar Riesebieter)
Solution: Adjust the test for dict assignment.
2020-12-20 14:49:42 +01:00
Bram Moolenaar
3beaf9cd8e
patch 8.2.2159: Vim9: when declaring a list it is not allocated yet
...
Problem: Vim9: when declaring a list it is not allocated yet, causing a
following extend() to fail.
Solution: When fetching a variable value for a list or dict that is null
allocate the list or dict, so it can be used. (closes #7491 )
2020-12-18 17:23:14 +01:00
Bram Moolenaar
9aed729fe9
patch 8.2.2157: Vim9: can delete a Vim9 script variable from a function
...
Problem: Vim9: can delete a Vim9 script variable from a function.
Solution: Check the variable is defined in Vim9 script. (closes #7483 )
2020-12-18 15:38:00 +01:00
Bram Moolenaar
acbae18df5
patch 8.2.2139: Vim9: unreachable code in assignment
...
Problem: Vim9: unreachable code in assignment.
Solution: Don't check "new_local" when "has_index" is set. Add test for
wrong type of list index.
2020-12-13 18:44:43 +01:00
Bram Moolenaar
b5b9480ee9
patch 8.2.2138: Vim9: "exit_cb" causes Vim to exit
...
Problem: Vim9: "exit_cb" causes Vim to exit.
Solution: Require white space after a command in Vim9 script. (closes #7467 )
Also fix that Vim9 style heredoc was not always recognized.
2020-12-13 17:50:20 +01:00
Bram Moolenaar
7257af477b
patch 8.2.2115: Vim9: some errors not tested for; dead code
...
Problem: Vim9: some errors not tested for; dead code.
Solution: Add a test. Remove dead code.
2020-12-08 22:08:51 +01:00
Bram Moolenaar
083966f671
patch 8.2.2108: Vim9: no test to check for :let error
...
Problem: Vim9: no test to check for :let error.
Solution: Add a test. Rename tests from _let_ to _var_.
2020-12-08 11:29:40 +01:00
Bram Moolenaar
8ff16e0183
patch 8.2.2107: Vim9: some errors not tested
...
Problem: Vim9: some errors not tested.
Solution: Add tests. Fix getting the right error.
2020-12-07 21:49:52 +01:00
Bram Moolenaar
2d870f8d9e
patch 8.2.2092: Vim9: unpredictable errors for script tests
...
Problem: Vim9: unpredictable errors for script tests.
Solution: Use a different script file name for each run.
2020-12-05 13:41:01 +01:00
Bram Moolenaar
e0de171ecd
patch 8.2.2082: Vim9: can still use the depricated #{} dict syntax
...
Problem: Vim9: can still use the depricated #{} dict syntax.
Solution: Remove support for #{} in Vim9 script. (closes #7406 , closes #7405 )
2020-12-02 17:36:54 +01:00
Bram Moolenaar
7f76494aac
patch 8.2.2081: Vim9: cannot handle a linebreak after "=" in assignment
...
Problem: Vim9: cannot handle a linebreak after "=" in assignment.
Solution: Skip over linebreak. (closes #7407 )
2020-12-02 15:11:18 +01:00
Bram Moolenaar
004d9b00ba
patch 8.2.2072: Vim9: list assign not well tested
...
Problem: Vim9: list assign not well tested.
Solution: Test with different destinations. Fix white space error.
2020-11-30 21:40:03 +01:00
Bram Moolenaar
da7c20c953
patch 8.2.2071: Vim9: list assign doesn't except empty remainder list
...
Problem: Vim9: list assign doesn't except empty remainder list.
Solution: Recognize list assignment with ";".
2020-11-30 21:12:19 +01:00
Bram Moolenaar
ce2c5444e2
patch 8.2.2066: Vim9: assignment with += doesn't work
...
Problem: Vim9: assignment with += doesn't work.
Solution: Do not see the "+" as an addition operator.
2020-11-28 21:21:17 +01:00
Bram Moolenaar
dc234caff2
patch 8.2.2063: Vim9: only one level of indexing supported
...
Problem: Vim9: only one level of indexing supported.
Solution: Handle more than one index in an assignment.
2020-11-28 18:52:33 +01:00
Bram Moolenaar
fc74d03e76
patch 8.2.2000: Vim9: dict.key assignment not implemented yet
...
Problem: Vim9: dict.key assignment not implemented yet.
Solution: Implement dict.key assignment. (closes #7312 )
2020-11-16 22:11:49 +01:00
Bram Moolenaar
348be7ed07
patch 8.2.1949: Vim9: using extend() on null dict is silently ignored
...
Problem: Vim9: using extend() on null dict is silently ignored.
Solution: Give an error message. Initialize a dict variable with an empty
dictionary. (closes #7251 )
2020-11-04 11:36:35 +01:00
Bram Moolenaar
334a8b4bde
patch 8.2.1864: Vim9: no error for wrong list type
...
Problem: Vim9: no error for wrong list type.
Solution: Add flag to indicate a constant. (closes #7160 )
2020-10-19 16:07:42 +02:00
Bram Moolenaar
352134bbfb
patch 8.2.1859: Vim9: crash in unpack assignment
...
Problem: Vim9: crash in unpack assignment.
Solution: Make sure an error message is turned into an exception.
(closes #7159 )
2020-10-17 22:04:08 +02:00
Bram Moolenaar
218450ad5e
patch 8.2.1857: Vim9: using job_status() on an unused var gives an error
...
Problem: Vim9: using job_status() on an unused var gives an error.
Solution: Return "fail". (closes #7158 )
2020-10-17 18:51:52 +02:00
Bram Moolenaar
7a66a17190
patch 8.2.1853: "to_f" is recognized at "topleft" modifier
...
Problem: "to_f" is recognized at "topleft" modifier.
Solution: Do not recognize modifer when "_" follows. (closes #7019 )
2020-10-16 19:56:12 +02:00
Bram Moolenaar
fc8aa6d02d
patch 8.2.1839: Vim9: memory leaks reported in assign test
...
Problem: Vim9: memory leaks reported in assign test.
Solution: Move the failing job_start() call to separate test files, it
causes false leak reports.
2020-10-12 20:31:26 +02:00
Bram Moolenaar
1a73923705
patch 8.2.1821: Vim9: concatenating to a NULL list doesn't work
...
Problem: Vim9: concatenating to a NULL list doesn't work.
Solution: Handle a NULL list like an empty list. (closes #7064 )
2020-10-10 15:37:58 +02:00
Bram Moolenaar
2bb2658bef
patch 8.2.1795: Vim9: operators && and || have a confusing result
...
Problem: Vim9: operators && and || have a confusing result.
Solution: Make the result a boolean.
2020-10-03 22:52:39 +02:00
Bram Moolenaar
55759b5228
patch 8.2.1777: Vim9: some assignment tests in the wrong file
...
Problem: Vim9: some assignment tests in the wrong file.
Solution: Move assignment tests to test_vim9_assign.
2020-09-30 22:59:42 +02:00
Bram Moolenaar
7a9cbca00a
patch 8.2.1766: Vim9: Some tests are still using :let
...
Problem: Vim9: Some tests are still using :let.
Solution: Change the last few declarations to use :var.
2020-09-27 22:47:05 +02:00
Bram Moolenaar
9830938e77
patch 8.2.1765: Vim9: some tests use "var var"
...
Problem: Vim9: some tests use "var var".
Solution: Use "var name". (closes #7032 )
2020-09-27 21:58:45 +02:00
Bram Moolenaar
06f9c6940a
patch 8.2.1764: Vim9: no error when assigning to script var with wrong type
...
Problem: Vim9: no error when assigning to script var with wrong type.
Solution: Fix off-by-one error. (closes #7028 )
2020-09-27 21:27:40 +02:00
Bram Moolenaar
ac564082f1
patch 8.2.1761: Vim9: Some tests are still using :let
...
Problem: Vim9: Some tests are still using :let.
Solution: Change more declarations to use :var.
2020-09-27 19:05:33 +02:00
Bram Moolenaar
2914a20abc
patch 8.2.1760: Vim9: crash when end marker is missing
...
Problem: Vim9: crash when end marker is missing. (Dhiraj Mishra)
Solution: Check for end of function lines. (closes #7031 )
2020-09-27 18:24:03 +02:00
Bram Moolenaar
c0e29010f6
patch 8.2.1755: Vim9: crash when using invalid heredoc marker
...
Problem: Vim9: crash when using invalid heredoc marker. (Dhiraj Mishra)
Solution: Check for NULL list. (closes #7027 ) Fix comment character.
2020-09-27 14:22:48 +02:00
Bram Moolenaar
30fd8204ce
patch 8.2.1744: Vim9: using ":const!" is weird
...
Problem: Vim9: using ":const!" is weird.
Solution: Use "var" - "final" - "const" like Dart. "let" still works for
now.
2020-09-26 15:09:30 +02:00
Bram Moolenaar
81ed496048
patch 8.2.1731: Vim9: cannot use += to append to empty NULL list
...
Problem: Vim9: cannot use += to append to empty NULL list.
Solution: Copy the list instead of extending it. (closes #6998 )
2020-09-23 15:56:50 +02:00
Bram Moolenaar
04bdd573d0
patch 8.2.1730: Vim9: cannot use member of unknown type
...
Problem: Vim9: cannot use member of unknown type.
Solution: When type is unknown us "any". (closes #6997 )
2020-09-23 13:25:32 +02:00
Bram Moolenaar
971caf53b8
patch 8.2.1724: Vim9: assignment tests spread out
...
Problem: Vim9: assignment tests spread out.
Solution: Create new test file for assignment tests.
2020-09-21 22:21:42 +02:00