@@ -803,14 +803,6 @@ incomplete.err5.x: invalid value {bar:2} (does not satisfy matchN): 1 matched, e
803
803
./incomplete.cue:55:6
804
804
./incomplete.cue:55:13
805
805
./incomplete.cue:56:6
806
- issue3694.full.#step: invalid value {uses?:string,run?:string} (does not satisfy matchN): 0 matched, expected 1:
807
- ./issue3694.cue:2:9
808
- ./issue3694.cue:2:16
809
- ./issue3694.cue:9:9
810
- issue3694.simple.#step: invalid value {uses?:string} (does not satisfy matchN): 0 matched, expected 1:
811
- ./issue3694.cue:19:9
812
- ./issue3694.cue:19:16
813
- ./issue3694.cue:22:9
814
806
815
807
Result:
816
808
(_|_){
@@ -1175,12 +1167,10 @@ Result:
1175
1167
}
1176
1168
}
1177
1169
}
1178
- issue3694: (_|_){
1179
- // [eval]
1180
- full: (_|_){
1181
- // [eval]
1170
+ issue3694: (struct){
1171
+ full: (struct){
1182
1172
#step: (_|_){
1183
- // [eval ] issue3694.full.#step: invalid value {uses?:string,run?:string} (does not satisfy matchN): 0 matched, expected 1:
1173
+ // [incomplete ] issue3694.full.#step: invalid value {uses?:string,run?:string} (does not satisfy matchN): 0 matched, expected 1:
1184
1174
// ./issue3694.cue:2:9
1185
1175
// ./issue3694.cue:2:16
1186
1176
// ./issue3694.cue:9:9
@@ -1192,10 +1182,9 @@ Result:
1192
1182
uses?: (string){ string }
1193
1183
}
1194
1184
}
1195
- simple: (_|_){
1196
- // [eval]
1185
+ simple: (struct){
1197
1186
#step: (_|_){
1198
- // [eval ] issue3694.simple.#step: invalid value {uses?:string} (does not satisfy matchN): 0 matched, expected 1:
1187
+ // [incomplete ] issue3694.simple.#step: invalid value {uses?:string} (does not satisfy matchN): 0 matched, expected 1:
1199
1188
// ./issue3694.cue:19:9
1200
1189
// ./issue3694.cue:19:16
1201
1190
// ./issue3694.cue:22:9
@@ -1220,22 +1209,7 @@ diff old new
1220
1209
incomplete.err1.x: invalid value {bar:2} (does not satisfy matchN): 0 matched, expected 1:
1221
1210
./incomplete.cue:34:6
1222
1211
./incomplete.cue:34:13
1223
- @@ -72,6 +67,14 @@
1224
- ./incomplete.cue:55:6
1225
- ./incomplete.cue:55:13
1226
- ./incomplete.cue:56:6
1227
- +issue3694.full.#step: invalid value {uses?:string,run?:string} (does not satisfy matchN): 0 matched, expected 1:
1228
- + ./issue3694.cue:2:9
1229
- + ./issue3694.cue:2:16
1230
- + ./issue3694.cue:9:9
1231
- +issue3694.simple.#step: invalid value {uses?:string} (does not satisfy matchN): 0 matched, expected 1:
1232
- + ./issue3694.cue:19:9
1233
- + ./issue3694.cue:19:16
1234
- + ./issue3694.cue:22:9
1235
-
1236
- Result:
1237
- (_|_){
1238
- @@ -111,7 +114,7 @@
1212
+ @@ -111,7 +106,7 @@
1239
1213
0: (int){ 2 }
1240
1214
}), int) }) }
1241
1215
pickTopOK2: (int){ &(matchN(1, (#list){
@@ -1244,7 +1218,7 @@ diff old new
1244
1218
}
1245
1219
}), int) }
1246
1220
pickTopErr: (int){ &(matchN(1, (#list){
1247
- @@ -244,21 +247 ,21 @@
1221
+ @@ -244,21 +239 ,21 @@
1248
1222
embed: (struct){
1249
1223
t1: (struct){
1250
1224
a: (_){ matchN(1, (#list){
@@ -1281,7 +1255,7 @@ diff old new
1281
1255
}
1282
1256
}) }
1283
1257
}
1284
- @@ -266,21 +269 ,21 @@
1258
+ @@ -266,21 +261 ,21 @@
1285
1259
direct: (struct){
1286
1260
t1: (struct){
1287
1261
a: (_){ matchN(1, (#list){
@@ -1318,7 +1292,7 @@ diff old new
1318
1292
}
1319
1293
}) }
1320
1294
}
1321
- @@ -294,9 +297 ,9 @@
1295
+ @@ -294,9 +289 ,9 @@
1322
1296
}
1323
1297
ok2: (struct){
1324
1298
x: (_){ matchN(0, (#list){
@@ -1331,7 +1305,7 @@ diff old new
1331
1305
}
1332
1306
}) }
1333
1307
}
1334
- @@ -306,23 +309 ,16 @@
1308
+ @@ -306,23 +301 ,16 @@
1335
1309
}
1336
1310
}
1337
1311
}
@@ -1364,7 +1338,7 @@ diff old new
1364
1338
a: (int){ 1 }
1365
1339
}
1366
1340
}
1367
- @@ -329,10 +325 ,10 @@
1341
+ @@ -329,10 +317 ,10 @@
1368
1342
}
1369
1343
test2: (struct){
1370
1344
#x: (_){ matchN(1, (#list){
@@ -1379,7 +1353,7 @@ diff old new
1379
1353
a: (int){ 1 }
1380
1354
}
1381
1355
}
1382
- @@ -350,9 +346 ,9 @@
1356
+ @@ -350,9 +338 ,9 @@
1383
1357
}
1384
1358
incomplete2: (struct){
1385
1359
x: (_){ matchN(1, (#list){
@@ -1392,44 +1366,16 @@ diff old new
1392
1366
}
1393
1367
}) }
1394
1368
}
1395
- @@ -443,10 +439,12 @@
1396
- }
1397
- }
1398
- }
1399
- - issue3694: (struct){
1400
- - full: (struct){
1401
- - #step: (_|_){
1402
- - // [incomplete] issue3694.full.#step: invalid value {uses?:string,run?:string} (does not satisfy matchN): 0 matched, expected 1:
1403
- + issue3694: (_|_){
1404
- + // [eval]
1405
- + full: (_|_){
1406
- + // [eval]
1407
- + #step: (_|_){
1408
- + // [eval] issue3694.full.#step: invalid value {uses?:string,run?:string} (does not satisfy matchN): 0 matched, expected 1:
1409
- // ./issue3694.cue:2:9
1410
- // ./issue3694.cue:2:16
1411
- // ./issue3694.cue:9:9
1412
- @@ -454,13 +452,14 @@
1369
+ @@ -454,8 +442,8 @@
1413
1370
run?: (string){ string }
1414
1371
}
1415
1372
s: (#struct){
1416
1373
- uses?: (string){ string }
1417
1374
run: (string){ "echo hello world" }
1418
- - }
1419
- - }
1420
- - simple: (struct){
1421
- - #step: (_|_){
1422
- - // [incomplete] issue3694.simple.#step: invalid value {uses?:string} (does not satisfy matchN): 0 matched, expected 1:
1423
1375
+ uses?: (string){ string }
1424
- + }
1425
- + }
1426
- + simple: (_|_){
1427
- + // [eval]
1428
- + #step: (_|_){
1429
- + // [eval] issue3694.simple.#step: invalid value {uses?:string} (does not satisfy matchN): 0 matched, expected 1:
1430
- // ./issue3694.cue:19:9
1431
- // ./issue3694.cue:19:16
1432
- // ./issue3694.cue:22:9
1376
+ }
1377
+ }
1378
+ simple: (struct){
1433
1379
-- diff/explanation --
1434
1380
The old evaluator does not correctly handle ToDataAll if a node is
1435
1381
mid-evaluation. The new evaluator does.
0 commit comments