Bram Moolenaar
a8b8af19e4
patch 8.2.2262: Vim9: converting bool to string prefixes v:
...
Problem: Vim9: converting bool to string prefixes v:.
Solution: Do not use the v: prefix.
2021-01-01 15:11:04 +01:00
Bram Moolenaar
d5ea8f08f7
patch 8.2.2261: Vim9: boolean option gets string type
...
Problem: Vim9: boolean option gets string type.
Solution: Check for VAR_BOOL. (closes #7588 )
2021-01-01 14:49:15 +01:00
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
6b55377303
patch 8.2.2252: Vim9: crash when using lambda without return type in dict
...
Problem: Vim9: crash when using lambda without return type in dict.
Solution: Without a return type use t_unknown. (closes #7587 )
2020-12-31 13:31:23 +01:00
Bram Moolenaar
de4f95b041
patch 8.2.2250: Vim9: sublist is ambiguous
...
Problem: Vim9: sublist is ambiguous.
Solution: Require white space around the colon. (closes #7409 )
2020-12-30 20:39:21 +01:00
Bram Moolenaar
e462f52db3
patch 8.2.2227: Vim9: recognizing lambda is too complicated
...
Problem: Vim9: recognizing lambda is too complicated.
Solution: Call compile_lambda() and check for NOTDONE.
2020-12-27 14:43:30 +01:00
Bram Moolenaar
7e3682068b
patch 8.2.2219: Vim9: method call with expression not supported
...
Problem: Vim9: method call with expression not supported.
Solution: Implement expr->(expr)().
2020-12-25 21:56:57 +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
9e68c32563
patch 8.2.2209: Vim9: return type of => lambda not parsed
...
Problem: Vim9: return type of => lambda not parsed.
Solution: Parse and use the return type.
2020-12-25 12:38:04 +01:00
Bram Moolenaar
65c4415276
patch 8.2.2204: Vim9: using -> both for method and lambda is confusing
...
Problem: Vim9: using -> both for method and lambda is confusing.
Solution: Use => for lambda in :def function.
2020-12-24 15:14:01 +01:00
Bram Moolenaar
27bf7af9d0
patch 8.2.2200: Vim9: lambda without white space around -> is confusing
...
Problem: Vim9: lambda without white space around -> is confusing.
Solution: Require white space in a :def funtion. (issue #7503 )
2020-12-23 20:27:31 +01:00
Bram Moolenaar
9987fb0b4b
patch 8.2.2146: Vim9: automatic conversion of number to string for dict key
...
Problem: Vim9: automatic conversion of number to string for dict key.
Solution: Do not convert number to string. (closes #7474 )
2020-12-15 21:41:56 +01:00
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