Closed rogpeppe closed 1 week ago
cue version
73d4e255
Yes (v0.10.0)
exec cue-v0.10.0 vet x.cue -- x.cue -- import "list" #x: list.UniqueItems() & [_, _]
Passing test. Although list.UniqueItems() is being unified with a noncrete value, it can later become concrete and correct.
list.UniqueItems()
> exec cue vet x.cue [stderr] #x: invalid value [_,_] (does not satisfy list.UniqueItems): ./x.cue:3:5 [exit status 1] FAIL: /tmp/y.txtar:1: unexpected command failure
It seems like list.UniqueItems is giving a permanent error when it should be giving an incomplete error.
list.UniqueItems
What version of CUE are you using (
cue version
)?Does this issue reproduce with the latest stable release?
Yes (v0.10.0)
What did you do?
What did you expect to see?
Passing test. Although
list.UniqueItems()
is being unified with a noncrete value, it can later become concrete and correct.What did you see instead?
It seems like
list.UniqueItems
is giving a permanent error when it should be giving an incomplete error.