| # DO NOT EDIT; generated by go run testdata/gen.go |
| # |
| #name: predefined ranges |
| #evalPartial |
| -- in.cue -- |
| k1: int8 |
| k1: 44 |
| |
| k2: int64 |
| k2: -8_000_000_000 |
| |
| e1: int16 |
| e1: 100_000 |
| -- out/def -- |
| k1: 44 |
| k2: -8000000000 |
| e1: _|_ // invalid value 100000 (out of bound int & <=32767) |
| -- out/legacy-debug -- |
| <0>{k1: 44, k2: -8000000000, e1: _|_((int & <=32767 & 100000):invalid value 100000 (out of bound int & <=32767))} |
| -- out/compile -- |
| --- in.cue |
| { |
| k1: &(int, >=-128, <=127) |
| k1: 44 |
| k2: &(int, >=-9223372036854775808, <=9223372036854775807) |
| k2: -8000000000 |
| e1: &(int, >=-32768, <=32767) |
| e1: 100000 |
| } |
| -- out/eval -- |
| Errors: |
| e1: invalid value 100000 (out of bound <=32767): |
| ./in.cue:8:5 |
| |
| Result: |
| (_|_){ |
| // [eval] |
| k1: (int){ 44 } |
| k2: (int){ -8000000000 } |
| e1: (_|_){ |
| // [eval] e1: invalid value 100000 (out of bound <=32767): |
| // ./in.cue:8:5 |
| } |
| } |