blob: 104f4dd6dfc6c2df8831cc341d6672e4559ecad1 [file] [log] [blame]
-- in.cue --
import "list"
x: list.UniqueItems
x: [string, ...string]
x: ["x","x"]
-- out/eval --
Errors:
x: invalid value ["x","x"] (does not satisfy list.UniqueItems):
./in.cue:2:1
./in.cue:3:1
./in.cue:4:1
Result:
(_|_){
// [eval]
x: (_|_){
// [eval] x: invalid value ["x","x"] (does not satisfy list.UniqueItems):
// ./in.cue:2:1
// ./in.cue:3:1
// ./in.cue:4:1
0: (string){ "x" }
1: (string){ "x" }
}
}
-- out/compile --
--- in.cue
{
x: import;list〉.UniqueItems
x: [
string,
...string,
]
x: [
"x",
"x",
]
}