@@ -58,21 +58,12 @@ Conjuncts: 87
58
58
Disjuncts: 68
59
59
-- out/evalalpha --
60
60
Errors:
61
- issue3977.inlineLet.p.x: conflicting values 1 and 2:
62
- ./in.cue:38:14
63
- ./in.cue:43:6
64
- x: conflicting values 1 and 2:
65
- ./in.cue:2:14
66
- ./in.cue:8:18
67
61
x: conflicting values 2 and 1:
68
62
./in.cue:20:14
69
63
./in.cue:26:19
70
64
x: conflicting values 4 and 1:
71
65
./in.cue:20:14
72
66
./in.cue:26:23
73
- x: invalid interpolation: 3 errors in empty disjunction::
74
- ./in.cue:14:8
75
- ./in.cue:14:17
76
67
x: 2 errors in empty disjunction::
77
68
./in.cue:23:8
78
69
@@ -81,21 +72,15 @@ Result:
81
72
// [eval]
82
73
issue3977: (_|_){
83
74
// [eval]
84
- inlineExpr: (_|_){
85
- // [eval]
75
+ inlineExpr: (struct){
86
76
#NetworkID: (int){ 1 }
87
77
#fn: (#struct){
88
78
x: (int){ 1 }
89
79
out: (int){ 2 }
90
80
}
91
- err: (_|_){
92
- // [eval] x: conflicting values 1 and 2:
93
- // ./in.cue:2:14
94
- // ./in.cue:8:18
95
- }
81
+ err: (int){ 3 }
96
82
}
97
- inlineDisj1: (_|_){
98
- // [eval]
83
+ inlineDisj1: (struct){
99
84
#NetworkID: (string){ |((string){ "2" }, (string){ "3" }, (string){ "4" }) }
100
85
#fn: (#struct){
101
86
x: (string){ |((string){ "2" }, (string){ "3" }, (string){ "4" }) }
@@ -104,11 +89,7 @@ Result:
104
89
// ./in.cue:14:8
105
90
}
106
91
}
107
- err: (_|_){
108
- // [eval] x: invalid interpolation: 3 errors in empty disjunction::
109
- // ./in.cue:14:8
110
- // ./in.cue:14:17
111
- }
92
+ err: (string){ "value=invalid" }
112
93
}
113
94
inlineDisj2: (_|_){
114
95
// [eval]
@@ -136,8 +117,7 @@ Result:
136
117
}
137
118
err: (int){ 11 }
138
119
}
139
- inlineLet: (_|_){
140
- // [eval]
120
+ inlineLet: (struct){
141
121
#NetworkID: (int){ 1 }
142
122
let p#1 = (_|_){
143
123
// [eval]
@@ -152,26 +132,16 @@ Result:
152
132
// ./in.cue:43:6
153
133
}
154
134
}
155
- err: (_|_){
156
- // [eval] issue3977.inlineLet.p.x: conflicting values 1 and 2:
157
- // ./in.cue:38:14
158
- // ./in.cue:43:6
159
- }
135
+ err: (int){ 12 }
160
136
}
161
137
}
162
138
}
163
139
-- diff/-out/evalalpha<==>+out/eval --
164
140
diff old new
165
141
--- old
166
142
+++ new
167
- @@ -1,14 +1,19 @@
143
+ @@ -1,13 +1,9 @@
168
144
Errors:
169
- +issue3977.inlineLet.p.x: conflicting values 1 and 2:
170
- + ./in.cue:38:14
171
- + ./in.cue:43:6
172
- +x: conflicting values 1 and 2:
173
- + ./in.cue:2:14
174
- + ./in.cue:8:18
175
145
x: conflicting values 2 and 1:
176
146
./in.cue:20:14
177
147
- ./in.cue:22:8
@@ -182,52 +152,9 @@ diff old new
182
152
- ./in.cue:22:8
183
153
- ./in.cue:26:8
184
154
./in.cue:26:23
185
- +x: invalid interpolation: 3 errors in empty disjunction::
186
- + ./in.cue:14:8
187
- + ./in.cue:14:17
188
155
x: 2 errors in empty disjunction::
189
156
./in.cue:23:8
190
-
191
- @@ -17,15 +22,21 @@
192
- // [eval]
193
- issue3977: (_|_){
194
- // [eval]
195
- - inlineExpr: (struct){
196
- + inlineExpr: (_|_){
197
- + // [eval]
198
- #NetworkID: (int){ 1 }
199
- #fn: (#struct){
200
- x: (int){ 1 }
201
- out: (int){ 2 }
202
- }
203
- - err: (int){ 3 }
204
- - }
205
- - inlineDisj1: (struct){
206
- + err: (_|_){
207
- + // [eval] x: conflicting values 1 and 2:
208
- + // ./in.cue:2:14
209
- + // ./in.cue:8:18
210
- + }
211
- + }
212
- + inlineDisj1: (_|_){
213
- + // [eval]
214
- #NetworkID: (string){ |((string){ "2" }, (string){ "3" }, (string){ "4" }) }
215
- #fn: (#struct){
216
- x: (string){ |((string){ "2" }, (string){ "3" }, (string){ "4" }) }
217
- @@ -34,7 +45,11 @@
218
- // ./in.cue:14:8
219
- }
220
- }
221
- - err: (string){ "value=invalid" }
222
- + err: (_|_){
223
- + // [eval] x: invalid interpolation: 3 errors in empty disjunction::
224
- + // ./in.cue:14:8
225
- + // ./in.cue:14:17
226
- + }
227
- }
228
- inlineDisj2: (_|_){
229
- // [eval]
230
- @@ -46,13 +61,9 @@
157
+ @@ -46,13 +42,9 @@
231
158
err: (_|_){
232
159
// [eval] x: conflicting values 2 and 1:
233
160
// ./in.cue:20:14
@@ -241,14 +168,7 @@ diff old new
241
168
// ./in.cue:26:23
242
169
// x: 2 errors in empty disjunction::
243
170
// ./in.cue:23:8
244
- @@ -66,24 +77,27 @@
245
- }
246
- err: (int){ 11 }
247
- }
248
- - inlineLet: (struct){
249
- + inlineLet: (_|_){
250
- + // [eval]
251
- #NetworkID: (int){ 1 }
171
+ @@ -71,15 +63,13 @@
252
172
let p#1 = (_|_){
253
173
// [eval]
254
174
x: (_|_){
@@ -261,28 +181,16 @@ diff old new
261
181
- // [eval] issue3977.inlineLet.p.x: conflicting values 2 and 1:
262
182
- // ./in.cue:38:14
263
183
- // ./in.cue:40:8
264
- - // ./in.cue:43:6
265
- - }
266
- - }
267
- - err: (int){ 12 }
268
184
+ // [eval] issue3977.inlineLet.p.x: conflicting values 1 and 2:
269
185
+ // ./in.cue:38:14
270
186
+ // ./in.cue:43:6
271
187
+ }
272
188
+ out: (_|_){
273
189
+ // [eval] issue3977.inlineLet.p.x: conflicting values 1 and 2:
274
190
+ // ./in.cue:38:14
275
- + // ./in.cue:43:6
276
- + }
277
- + }
278
- + err: (_|_){
279
- + // [eval] issue3977.inlineLet.p.x: conflicting values 1 and 2:
280
- + // ./in.cue:38:14
281
- + // ./in.cue:43:6
282
- + }
283
- }
284
- }
285
- }
191
+ // ./in.cue:43:6
192
+ }
193
+ }
286
194
-- diff/explanation --
287
195
evalv3 correctly fails on all places marked with "err"
288
196
-- out/eval --
0 commit comments