-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
The following code is valid in nu but causes error in tree-sitter-nu
[{a: {b: true}}, {a: {d: false}}] | where a?.b?However the following code is not allowed in nushell
[{a: {b: true}}, {a: {d: false}}] | where a?.b? and a?.b?Error: nu::shell::type_mismatch
× Type mismatch.
╭─[entry #38:1:46]
1 │ [{a: {b: true}}, {a: {d: false}}] | where a?.b? and a?.b?
· ┬
· ╰── expected bool
╰────
So which of the following way is suggested for its fix in tree-sitter-nu:
- special treatment to make only the first case valid
- allow both
Metadata
Metadata
Assignees
Labels
No labels