| # DO NOT EDIT; generated by go run testdata/gen.go |
| # |
| raw: true |
| -- in.cue -- |
| { |
| a: 5 * [int] |
| a: [1, 2, ...] |
| e: [...int] |
| e: [1, 2, ...] |
| f: [1, 2, ...] |
| } |
| -- out/def -- |
| a: [1, 2, int, int, int] |
| b: <=5*[int] & [1, 2, ...] |
| c: (>=3 & <=5)*[int] & [1, 2, ...] |
| d: >=2*[int] & [1, 2, ...] |
| e: [1, 2, ...int] |
| f: [1, 2, ...] |
| -- out/compile -- |
| --- in.cue |
| { |
| { |
| a: (5 * [ |
| int, |
| ]) |
| a: [ |
| 1, |
| 2, |
| ..., |
| ] |
| e: [ |
| ...int, |
| ] |
| e: [ |
| 1, |
| 2, |
| ..., |
| ] |
| f: [ |
| 1, |
| 2, |
| ..., |
| ] |
| } |
| } |
| -- out/eval -- |
| (struct){ |
| a: (#list){ |
| 0: (int){ 1 } |
| 1: (int){ 2 } |
| 2: (int){ int } |
| 3: (int){ int } |
| 4: (int){ int } |
| } |
| e: (list){ |
| 0: (int){ 1 } |
| 1: (int){ 2 } |
| } |
| f: (list){ |
| 0: (int){ 1 } |
| 1: (int){ 2 } |
| } |
| } |