The has attribute can be chained:
$ nix eval --expr "{} ? foo ? bar"
false
But nixfmt fails to format it:
$ nixfmt <<<"{} ? foo ? bar"
<stdin>:1:10:
|
1 | {} ? foo ? bar
| ^
unexpected '?'
expecting '.', end of input, or operator
Meanwhile, single has attributes or dot operators work just fine:
$ nixfmt <<<"{} ? foo"
{ } ? foo
$ nixfmt <<<"{} ? foo.bar"
{ } ? foo.bar
The has attribute can be chained:
But
nixfmtfails to format it:Meanwhile, single has attributes or dot operators work just fine: