#!/usr/bin/env nu
let $list = [a b c d]
# Correctly parsed
$list | filter {|x| $x | str starts-with c }
# Still valid but not correctly parsed
$list | filter { str starts-with c }
The closure for filter command is incorrectly parsed in the last line. And this leads to an error in the tree.
In the following example:
The closure for filter command is incorrectly parsed in the last line. And this leads to an error in the tree.