Bram Moolenaar
5269bd2a72
patch 8.2.0368: Vim9: import that redefines local variable does not fail
...
Problem: Vim9: import that redefines local variable does not fail.
Solution: Check for already defined symbols.
2020-03-09 19:25:27 +01:00
Bram Moolenaar
a471eeae75
patch 8.2.0355: Vim9: str_val is confusing, it's a number
...
Problem: Vim9: str_val is confusing, it's a number
Solution: Rename to stnr_val.
2020-03-04 22:20:26 +01:00
Bram Moolenaar
080457c02d
patch 8.2.0350: Vim9: expression tests don't use recognized constants
...
Problem: Vim9: expression tests don't use recognized constants.
Solution: Recognize "true" and "false" as constants. Make skipping work for
assignment and expression evaluation.
2020-03-03 21:53:32 +01:00
Bram Moolenaar
5381c7a162
patch 8.2.0348: Vim9: not all code tested
...
Problem: Vim9: not all code tested.
Solution: Add a few more tests. fix using "b:" in literal dictionary.
2020-03-02 22:53:32 +01:00
Bram Moolenaar
61a6d4e48b
patch 8.2.0346: Vim9: finding common list type not tested
...
Problem: Vim9: finding common list type not tested.
Solution: Add more tests. Fix listing function. Fix overwriting type.
2020-03-01 23:32:25 +01:00
Bram Moolenaar
f51cb4e08e
patch 8.2.0343: Vim9: using wrong instruction, limited test coverage
...
Problem: Vim9: using wrong instruction, limited test coverage.
Solution: Use ISN_PUSHJOB. Add a few more tests.
2020-03-01 17:55:14 +01:00
Bram Moolenaar
087d2e1518
patch 8.2.0340: Vim9: function and partial types not tested
...
Problem: Vim9: function and partial types not tested.
Solution: Support more for partial, add tests.
2020-03-01 15:36:42 +01:00
Bram Moolenaar
fbdd08ed9b
patch 8.2.0339: Vim9: function return type may depend on arguments
...
Problem: Vim9: function return type may depend on arguments.
Solution: Instead of a fixed return type use a function to figure out the
return type.
2020-03-01 14:04:46 +01:00
Bram Moolenaar
f4f190d821
patch 8.2.0338: build failure without the channel feature
...
Problem: Build failure without the channel feature.
Solution: Add #ifdef
2020-03-01 13:01:16 +01:00
Bram Moolenaar
42a480bf72
patch 8.2.0336: Vim9: insufficient test coverage for compiling
...
Problem: Vim9: insufficient test coverage for compiling.
Solution: Add more tests.
2020-02-29 23:23:47 +01:00
Bram Moolenaar
b35efa5ed0
patch 8.2.0322: Vim9: error checks not tested
...
Problem: Vim9: error checks not tested.
Solution: Add more test cases. Avoid error for function loaded later.
2020-02-26 20:15:18 +01:00
Bram Moolenaar
ad39c094d2
patch 8.2.0321: Vim9: ":execute" does not work yet
...
Problem: Vim9: ":execute" does not work yet.
Solution: Add ISN_EXECUTE. (closes #5699 ) Also make :echo work with more
than one argument.
2020-02-26 18:23:43 +01:00
Bram Moolenaar
0c2ca58ef0
patch 8.2.0318: Vim9: types not sufficiently tested
...
Problem: Vim9: types not sufficiently tested.
Solution: Add tests with more types.
2020-02-25 22:58:29 +01:00
Bram Moolenaar
f2d5c240a5
patch 8.2.0312: Vim9: insufficient script tests
...
Problem: Vim9: insufficient script tests.
Solution: Add more tests. Make "import * as Name" work.
2020-02-23 21:25:54 +01:00
Bram Moolenaar
0c6ceaf903
patch 8.2.0298: Vim9 script: cannot start command with a string constant
...
Problem: Vim9 script: cannot start command with a string constant.
Solution: Recognize expression starting with '('.
2020-02-22 18:36:32 +01:00
Bram Moolenaar
5b1c8fe3d5
patch 8.2.0294: cannot use Ex command that is also a function name
...
Problem: Cannot use Ex command that is also a function name.
Solution: Recognize an Ex command by a colon prefix.
2020-02-21 18:42:43 +01:00
Bram Moolenaar
436472f5e0
patch 8.2.0291: Vim9: assigning [] to list<string> doesn't work
...
Problem: Vim9: assigning [] to list<string> doesn't work.
Solution: Use void for empty list and dict. (Ken Takata, closes #5669 )
2020-02-20 22:54:43 +01:00
Bram Moolenaar
0062c2d4f9
patch 8.2.0288: Vim9: some float and blob operators not tested
...
Problem: Vim9: some float and blob operators not tested.
Solution: Add float and blob tests. Fix addition.
2020-02-20 22:14:31 +01:00
Bram Moolenaar
0bbf722aaa
patch 8.2.0285: unused error message; cannot create s:var
...
Problem: Unused error message. Cannot create s:var.
Solution: Remove the error message. Make assignment to s:var work.
2020-02-19 22:31:48 +01:00
Bram Moolenaar
c0d656c89d
patch 8.2.0284: Vim9: assignment test fails
...
Problem: Vim9: assignment test fails.
Solution: Avoid duplicating "s:".
2020-02-19 21:12:40 +01:00
Bram Moolenaar
fd1823e0b7
patch 8.2.0283: Vim9: failing to load script var not tested
...
Problem: Vim9: failing to load script var not tested.
Solution: Add more tests. Fix using s: in old script.
2020-02-19 20:23:11 +01:00
Bram Moolenaar
38a5f517a7
patch 8.2.0276: Vim9: not allowing space before ")" in function call
...
Problem: Vim9: not allowing space before ")" in function call is too
restrictive. (Ben Jackson)
Solution: Skip space before the ")". Adjust other space checks.
2020-02-19 12:40:39 +01:00
Bram Moolenaar
b13af50f73
patch 8.2.0269: Vim9: operator after list index does not work
...
Problem: Vim9: operator after list index does not work. (Yasuhiro
Matsumoto)
Solution: After indexing a list change the type to the list member type.
(closes #5651 )
2020-02-17 21:12:08 +01:00
Bram Moolenaar
df2ecddf9d
patch 8.2.0263: a few new Vim9 messages are not localized
...
Problem: A few new Vim9 messages are not localized.
Solution: Add the gettext wrapper. (Dominique Pelle, closes #5647 )
2020-02-16 15:03:48 +01:00
Bram Moolenaar
ae8d2de3a9
patch 8.2.0254: compiler warning for checking size_t to be negative
...
Problem: Compiler warning for checking size_t to be negative.
Solution: Only check for zero. (Zoltan Arpadffy)
2020-02-13 21:42:24 +01:00
Bram Moolenaar
3dd64608f6
patch 8.2.0252: Windows compiler warns for using size_t
...
Problem: Windows compiler warns for using size_t.
Solution: Change to int. (Mike Williams)
2020-02-13 20:31:28 +01:00
Bram Moolenaar
f2460a3aec
patch 8.2.0229: compare instructions not tested
...
Problem: Compare instructions not tested.
Solution: Add test cases. Fix disassemble with line continuation.
2020-02-07 22:09:54 +01:00
Bram Moolenaar
04d0522046
patch 8.2.0226: compiling for loop not tested
...
Problem: Compiling for loop not tested.
Solution: Add a test. Make variable initialization work for more types.
2020-02-06 22:06:54 +01:00
Bram Moolenaar
158906cffc
patch 8.2.0224: compiling :elseif not tested yet
...
Problem: compiling :elseif not tested yet.
Solution: Add test for :elseif. Fix generating jumps.
2020-02-06 20:39:45 +01:00
Bram Moolenaar
5cab73f8cc
patch 8.2.0223: some instructions not yet tested
...
Problem: Some instructions not yet tested.
Solution: Disassemble more instructions. Move tests to a new file. Compile
call to s:function().
2020-02-06 19:25:19 +01:00
Bram Moolenaar
170fcfcf25
patch 8.2.0222: Vim9: optional function arguments don't work yet
...
Problem: Vim9: optional function arguments don't work yet.
Solution: Implement optional function arguments.
2020-02-06 17:51:35 +01:00
Bram Moolenaar
ff80cb6807
patch 8.2.0216: several Vim9 instructions are not tested
...
Problem: Several Vim9 instructions are not tested.
Solution: Add more tests. Fix :disassamble output. Make catch with pattern
work.
2020-02-05 22:10:05 +01:00
Bram Moolenaar
eed3571fe0
patch 8.2.0210: Coverity complains about uninitialized field
...
Problem: Coverity complains about uninitialized field.
Solution: Initialize the field.
2020-02-04 23:08:14 +01:00
Bram Moolenaar
26e117e9bc
patch 8.2.0206: calling Vim9 function using default argument fails
...
Problem: Calling Vim9 function using default argument fails.
Solution: Give an appropriate error. (closes #5572 )
2020-02-04 21:24:15 +01:00
Bram Moolenaar
4e12a5df37
patch 8.2.0201: cannot assign to an imported variable
...
Problem: Cannot assign to an imported variable.
Solution: Make it work.
2020-02-03 20:50:59 +01:00
Bram Moolenaar
b283a8a680
patch 8.2.0200: Vim9 script commands not sufficiently tested
...
Problem: Vim9 script commands not sufficiently tested.
Solution: Add more tests. Fix storing global variable. Make script
variables work.
2020-02-02 22:24:04 +01:00
Bram Moolenaar
7f829cab35
patch 8.2.0188: Check commands don't work well with Vim9 script
...
Problem: Check commands don't work well with Vim9 script.
Solution: Improve constant expression handling.
2020-01-31 22:12:41 +01:00
Bram Moolenaar
0b76ad53b3
patch 8.2.0187: reduntant code
...
Problem: Reduntant code.
Solution: Remove unused assignments. (Dominique Pelle, closes #5557 )
2020-01-31 21:20:51 +01:00
Bram Moolenaar
a259d8d30b
patch 8.2.0185: Vim9 script: cannot use "if has()" to skip lines
...
Problem: Vim9 script: cannot use "if has()" to skip lines.
Solution: Evaluate constant expression at runtime.
2020-01-31 20:10:50 +01:00
Bram Moolenaar
0ff6aad393
patch 8.2.0173: build fails with old compiler
...
Problem: Build fails with old compiler.
Solution: Do not use anonymous unions. (John Marriott)
2020-01-29 21:27:21 +01:00
Bram Moolenaar
a6d536829a
patch 8.2.0170: Coverity warning for ignoring return value
...
Problem: Coverity warning for ignoring return value.
Solution: Check the return value and return if failed.
2020-01-28 23:04:06 +01:00
Bram Moolenaar
5b18c248d3
patch 8.2.0165: Coverity warning for using NULL pointer
...
Problem: Coverity warning for using NULL pointer.
Solution: Add missing "else".
2020-01-28 22:30:32 +01:00
Bram Moolenaar
a5d5953d59
patch 8.2.0155: warnings from MinGW compiler; tests fail without +float
...
Problem: Warnings from MinGW compiler. (John Marriott) Json test fails when
building without +float feature.
Solution: Init variables. Fix Json parsing. Skip a few tests that require
the +float feature.
2020-01-26 21:42:03 +01:00
Bram Moolenaar
21b9e9773d
patch 8.2.0154: reallocating the list of scripts is inefficient
...
Problem: Reallocating the list of scripts is inefficient.
Solution: Instead of using a growarray of scriptitem_T, store pointers and
allocate each scriptitem_T separately. Also avoids that the
growarray pointers change when sourcing a new script.
2020-01-26 19:26:46 +01:00
Bram Moolenaar
8a7d6542b3
patch 8.2.0149: maintaining a Vim9 branch separately is more work
...
Problem: Maintaining a Vim9 branch separately is more work.
Solution: Merge the Vim9 script changes.
2020-01-26 15:56:19 +01:00