-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve robustness of
:let
command (#2297)
* Improve robustness of `:let` command Fixes #2296 The root cause of the above bug was that the old parser for `:let` commands was too lenient. In particular, given a command like: ``` :let x : T = e ``` … the old parser would silently ignore the `: T` part of the command. This change fixes that by adding support for type annotations and fixing the `:let` command to exactly match the standard parser in terms of what expressions it permits. * Use `NamedFieldPuns` … as suggested by @sjakobi Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
8ab5529
commit fa11f0c
Showing
2 changed files
with
67 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters