Bram Moolenaar
399ea8108c
patch 8.2.2145: Vim9: concatenating lists does not adjust type of result
...
Problem: Vim9: concatenating lists does not adjust type of result.
Solution: When list member types differ use "any" member type.
(closes #7473 )
2020-12-15 21:28:57 +01:00
Bram Moolenaar
7bb4e74c38
patch 8.2.2117: some functions use any value as a string
...
Problem: Some functions use any value as a string.
Solution: Check that the value is a non-empty string.
2020-12-09 12:41:50 +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
918a424917
patch 8.2.2099: Vim9: some checks are not tested
...
Problem: Vim9: some checks are not tested.
Solution: Add a few more tests. Give better error messages.
2020-12-06 14:37:08 +01:00
Bram Moolenaar
c5e6a7179d
patch 8.2.2090: Vim9: dict does not accept a key in quotes
...
Problem: Vim9: dict does not accept a key in quotes.
Solution: Recognize a key in single or double quotes.
2020-12-04 19:12:14 +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
c2ca935d26
patch 8.2.2053: Vim9: lamba doesn't accept argument types
...
Problem: Vim9: lamba doesn't accept argument types.
Solution: Optionally accept argument types at the script level.
2020-11-25 21:30:11 +01:00
Bram Moolenaar
2bede173a1
patch 8.2.2015: Vim9: literal dict #{} is not like any other language
...
Problem: Vim9: literal dict #{} is not like any other language.
Solution: Support the JavaScript syntax.
2020-11-19 18:53:18 +01:00
Bram Moolenaar
79cdf80bed
patch 8.2.2013: Vim9: not skipping white space after unary minus
...
Problem: Vim9: not skipping white space after unary minus.
Solution: Skip whitespace. (closes #7324 )
2020-11-18 17:39:05 +01:00
Bram Moolenaar
d92cc130fb
patch 8.2.2012: Vim9: confusing error message when using bool wrongly
...
Problem: Vim9: confusing error message when using bool wrongly.
Solution: Mention "Bool" instead of "Special". (closes #7323 )
2020-11-18 17:17:15 +01:00
Bram Moolenaar
a065a14115
patch 8.2.1986: expression test is flaky on Appveyor
...
Problem: Expression test is flaky on Appveyor.
Solution: Temporarily disable the test in MS-Windows.
2020-11-14 20:57:20 +01:00
Bram Moolenaar
659bb2275e
patch 8.2.1980: Vim9: some tests are not done at the script level
...
Problem: Vim9: some tests are not done at the script level.
Solution: Use CheckDefAndScriptSuccess() in more places. Fix uncovered
problems.
2020-11-12 20:16:39 +01:00
Bram Moolenaar
ea2d407f9c
patch 8.2.1977: Vim9: error for using a string in a condition is confusing
...
Problem: Vim9: error for using a string in a condition is confusing.
Solution: Give a more specific error. Also adjust the compile time type
checking for || and &&.
2020-11-12 12:08:51 +01:00
Bram Moolenaar
46f479c756
patch 8.2.1965: Vim9: tests fail without the channel feature
...
Problem: Vim9: tests fail without the channel feature.
Solution: Check if the channel feature is present. (Dominique Pellé,
closes 7270)
2020-11-07 13:09:18 +01:00
Bram Moolenaar
c7f7f6db3e
patch 8.2.1952: Vim9: crash when using a NULL dict key
...
Problem: Vim9: crash when using a NULL dict key.
Solution: Use a NULL dict key like an empty string. (closes #7249 )
2020-11-04 13:38:28 +01:00
Bram Moolenaar
9c13f76275
patch 8.2.1950: Vim9: crash when compiling function fails when getting type
...
Problem: Vim9: crash when compiling function fails when getting type.
Solution: Handle NULL type. (closes #7253 )
2020-11-04 12:00:53 +01:00
Bram Moolenaar
086fc9a585
patch 8.2.1924: Vim9: crash when indexing dict with NULL key
...
Problem: Vim9: crash when indexing dict with NULL key.
Solution: Use empty string instead of NULL. (closes #7229 ) Make error
message more useful for empty string.
2020-10-30 18:33:02 +01:00
Bram Moolenaar
081db1a66d
patch 8.2.1890: Vim9: strange error for subtracting from a list
...
Problem: Vim9: strange error for subtracting from a list.
Solution: Check getting a number, not a string. (closes #7167 )
2020-10-22 20:09:43 +02:00
Bram Moolenaar
b07a39de48
patch 8.2.1889: Vim9: errornous error for missing white space after {}
...
Problem: Vim9: errornous error for missing white space after {}.
Solution: Don't skip over white space after {}. (issue #7167 )
2020-10-22 19:00:01 +02:00
Bram Moolenaar
9a13e185e5
patch 8.2.1868: Vim9: no error for missing space after comma in dict
...
Problem: Vim9: no error for missing space after comma in dict.
Solution: Check for white space. (closes #6672 )
2020-10-19 21:45:07 +02:00
Bram Moolenaar
a2c026d0fd
patch 8.2.1861: Vim9: no specific error when parsing lambda fails
...
Problem: Vim9: no specific error when parsing lambda fails.
Solution: Also give syntax errors when not evaluating. (closes #7154 )
2020-10-18 18:03:17 +02:00
Bram Moolenaar
27491cd3ef
patch 8.2.1851: Vim9: "!" followed by space incorrectly used
...
Problem: Vim9: "!" followed by space incorrectly used.
Solution: Skip over trailing spaces. (closes #7131 )
2020-10-15 21:54:56 +02:00
Bram Moolenaar
93be1644db
patch 8.2.1838: Vim9: cannot insert a comment line in an expression
...
Problem: Vim9: cannot insert a comment line in an expression.
Solution: Skip comment lines at the script level. (closes #7111 )
2020-10-11 21:34:41 +02:00
Bram Moolenaar
44aefffaad
patch 8.2.1802: Vim9: crash with unterminated dict
...
Problem: Vim9: crash with unterminated dict. (Dhiraj Mishra)
Solution: Return empty string instead of NULL. (closes #7084 )
2020-10-05 19:23:59 +02:00
Bram Moolenaar
1310660557
patch 8.2.1798: Vim9: trinary operator condition is too permissive
...
Problem: Vim9: trinary operator condition is too permissive.
Solution: Use tv_get_bool_chk().
2020-10-04 16:06:05 +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
92f26c256e
patch 8.2.1794: no falsy Coalescing operator
...
Problem: No falsy Coalescing operator.
Solution: Add the "??" operator. Fix mistake with function argument count.
2020-10-03 20:17:30 +02:00
Bram Moolenaar
c1f0066b64
patch 8.2.1789: Vim9: crash with invalid list constant
...
Problem: Vim9: crash with invalid list constant. (Dhiraj Mishra)
Solution: Return FAIL when compiling the list fails. (closes #7066 )
2020-10-03 13:41:53 +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
37ce6d3a6a
patch 8.2.1759: 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 17:57:43 +02:00
Bram Moolenaar
5597ba0467
patch 8.2.1758: Vim9: type of unmaterialized list is wrong
...
Problem: Vim9: type of unmaterialized list is wrong.
Solution: Use list<number>.
2020-09-27 17:45:03 +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
Bram Moolenaar
dbd759309b
patch 8.2.1722: Vim9: cannot assign a lambda to a variable of type function
...
Problem: Vim9: cannot assign a lambda to a variable of type function.
Solution: Allow for assigning a partial to a variable of type function.
(Naruhiko Nishino, closes #6996 )
2020-09-21 21:48:21 +02:00
Bram Moolenaar
10e4f12bf4
patch 8.2.1719: Vim9: no error if comma is missing in between arguments
...
Problem: Vim9: no error if comma is missing in between arguments.
Solution: Give an error message.
2020-09-20 22:43:52 +02:00
Bram Moolenaar
77b20977dc
patch 8.2.1710: Vim9: list of list type can be wrong
...
Problem: Vim9: list of list type can be wrong.
Solution: Use VAR_UNKNOWN for empty list. Recognize VAR_UNKNOWN when
looking for a common type. (closes #6979 )
2020-09-19 14:12:34 +02:00
Bram Moolenaar
7707228aac
patch 8.2.1697: inconsistent capitalization of error messages
...
Problem: Inconsistent capitalization of error messages.
Solution: Always start with a capital.
2020-09-16 17:55:40 +02:00
Bram Moolenaar
5e65423077
patch 8.2.1691: Vim9: list<any> is not accepted where list<number> is expected
...
Problem: Vim9: list<any> is not accepted where list<number> is expected.
Solution: Add functions to allocate and free a type_T, use it in
ISN_CHECKTYPE. (closes #6959 )
2020-09-16 15:22:00 +02:00
Bram Moolenaar
eb26f4331f
patch 8.2.1680: Vim9: line number for compare error is wrong
...
Problem: Vim9: line number for compare error is wrong.
Solution: Set SOURCING_LNUM. (closes #6936 )
2020-09-14 16:50:05 +02:00
Bram Moolenaar
c6e57b74fa
patch 8.2.1671: Vim9: stray error for missing white space
...
Problem: Vim9: stray error for missing white space.
Solution: Do not skip over white space after member. (closes #6817 )
2020-09-12 21:27:03 +02:00
Bram Moolenaar
dadaddd59f
patch 8.2.1668: Vim9: not accepting 0 or 1 as bool when type is any
...
Problem: Vim9: not accepting 0 or 1 as bool when type is any.
Solution: Convert the type with the CHECKTYPE instruction. (closes #6913 )
2020-09-12 19:11:23 +02:00
Bram Moolenaar
ba7c0d7b4c
patch 8.2.1644: Vim9: cannot assign 1 and 0 to bool at script level
...
Problem: Vim9: cannot assign 1 and 0 to bool at script level.
Solution: Add the TTFLAG_BOOL_OK flag to the type. Fix name of test
function.
2020-09-09 18:54:42 +02:00
Bram Moolenaar
d2c617055a
patch 8.2.1623: Vim9: using :call where it is not needed
...
Problem: Vim9: using :call where it is not needed.
Solution: Remove :call. (closes #6892 )
2020-09-06 15:58:36 +02:00
Bram Moolenaar
7918238528
patch 8.2.1609: Vim9: test fails when build without +channel
...
Problem: Vim9: test fails when build without +channel.
Solution: Add check for +channel. (closes #6879 )
2020-09-05 20:06:33 +02:00
Bram Moolenaar
749639ec72
patch 8.2.1529: Vim9: :elseif may be compiled when not needed
...
Problem: Vim9: :elseif may be compiled when not needed.
Solution: Do evaluate the :elseif expression.
2020-08-27 23:08:47 +02:00
Bram Moolenaar
601e76ac3c
patch 8.2.1527: Vim9: cannot use a function name at script level
...
Problem: Vim9: cannot use a function name as a function reference at script
level.
Solution: Check if a name is a function name. (closes #6789 )
2020-08-27 21:33:10 +02:00
Bram Moolenaar
69e44552c5
patch 8.2.1512: failure after trinary expression fails
...
Problem: Failure after trinary expression fails.
Solution: Restore eval_flags. (Yasuhiro Matsumoto, closes #6776 )
2020-08-22 22:37:20 +02:00
Bram Moolenaar
7cb6fc29d0
patch 8.2.1504: Vim9: white space checks are only done for a :def function
...
Problem: Vim9: white space checks are only done for a :def function.
Solution: Also do checks at the script level. Adjust the name of a few
error messages.
2020-08-21 22:36:47 +02:00
Bram Moolenaar
122616d9c1
patch 8.2.1502: Vim9: can use += with a :let command at script level
...
Problem: Vim9: can use += with a :let command at script level.
Solution: Give an error.
2020-08-21 21:32:50 +02:00