$ cue def ./repro.cue | cue eval -H -
_request: [
if _input.function != _|_ // explicit error (_|_ literal) in source
{
_input.function
}, _input.test][0]
_input: {}
$ cue def ./repro.cue | cue fmt - | cue eval -H -
missing ',' in list literal:
-:7:7
missing ',' before newline in list literal:
-:9:3
$ cue def ./repro.cue | cue fmt -
package repro
_request: [
if _input.function != _|_ {
_input.function
} // explicit error (_|_ literal) in source, _input.test][0] ### <- here, the second list element is rendered after the comment
_input: {
...
}