09339862 | 01-Sep-2022 |
Nikita Popov |
Make sure Array nodes can not contain null Now that destructuring is always represented using List nodes, make sure that Array nodes can no longer contain null elements, so well-type
Make sure Array nodes can not contain null Now that destructuring is always represented using List nodes, make sure that Array nodes can no longer contain null elements, so well-typed code doesn't have to deal with them unnecessarily. If an array does contain empty elements, these are now result in an error and are represented as a ArrayItem with Error value if error recovery is used. The implementation is a bit tricky because at the time the Array node is created, we cannot tell whether it will be used in a creation or destructuring context. For this reason the error reporting is delayed parsing has finished. Closes #876.
show more ...
|
9857581e | 29-Aug-2022 |
Anton |
Add array/callable to BUILTIN_TYPE_VERSIONS Listing these is not strictly necessary, in that array/callable are keywords, and as such don't use the relevant code path. We can still i
Add array/callable to BUILTIN_TYPE_VERSIONS Listing these is not strictly necessary, in that array/callable are keywords, and as such don't use the relevant code path. We can still include them for the sake of completeness. Closes #872.
show more ...
|