@@ -261,9 +261,6 @@ embed.simple.a.err: field not allowed:
261
261
./in.cue:4:5
262
262
embed.withIndirect.err: field not allowed:
263
263
./in.cue:71:8
264
- issue3833.out.a.b: field not allowed:
265
- ./issue3833.cue:4:6
266
- ./issue3833.cue:10:3
267
264
embed.openValidator.t2.a.b: invalid value 1 (does not satisfy matchN): 0 matched, expected 1:
268
265
./validators.cue:21:5
269
266
./validators.cue:21:12
@@ -597,17 +594,10 @@ Result:
597
594
}
598
595
results: ~(issue3832._assert.pass)
599
596
}
600
- issue3833: (_|_){
601
- // [eval]
602
- out: (_|_){
603
- // [eval]
604
- a: (_|_){
605
- // [eval]
606
- b: (_|_){
607
- // [eval] issue3833.out.a.b: field not allowed:
608
- // ./issue3833.cue:4:6
609
- // ./issue3833.cue:10:3
610
- }
597
+ issue3833: (struct){
598
+ out: (#struct){
599
+ a: (#struct){
600
+ b: (string){ "foo" }
611
601
c: (string){ "foo" }
612
602
}
613
603
}
@@ -788,7 +778,7 @@ Result:
788
778
diff old new
789
779
--- old
790
780
+++ new
791
- @@ -1,81 +1,32 @@
781
+ @@ -1,81 +1,29 @@
792
782
Errors:
793
783
and.transitive.out.ok: field not allowed:
794
784
- ./in.cue:34:5
@@ -867,13 +857,10 @@ diff old new
867
857
- ./validators.cue:12:6
868
858
- ./validators.cue:17:5
869
859
- ./validators.cue:18:5
870
- +issue3833.out.a.b: field not allowed:
871
- + ./issue3833.cue:4:6
872
- + ./issue3833.cue:10:3
873
860
embed.openValidator.t2.a.b: invalid value 1 (does not satisfy matchN): 0 matched, expected 1:
874
861
./validators.cue:21:5
875
862
./validators.cue:21:12
876
- @@ -94,14 +45 ,11 @@
863
+ @@ -94,14 +42 ,11 @@
877
864
}
878
865
a: (_|_){
879
866
// [eval]
@@ -889,7 +876,7 @@ diff old new
889
876
}
890
877
}
891
878
andInStruct: (_|_){
892
- @@ -111,14 +59 ,11 @@
879
+ @@ -111,14 +56 ,11 @@
893
880
}
894
881
a: (_|_){
895
882
// [eval]
@@ -905,7 +892,7 @@ diff old new
905
892
}
906
893
}
907
894
embedDefWithEmbedding: (_|_){
908
- @@ -128,15 +73 ,11 @@
895
+ @@ -128,15 +70 ,11 @@
909
896
}
910
897
a: (_|_){
911
898
// [eval]
@@ -922,7 +909,7 @@ diff old new
922
909
}
923
910
}
924
911
embedComprehension: (_|_){
925
- @@ -146,16 +87 ,11 @@
912
+ @@ -146,16 +84 ,11 @@
926
913
}
927
914
a: (_|_){
928
915
// [eval]
@@ -940,7 +927,7 @@ diff old new
940
927
}
941
928
}
942
929
fieldWithAnd: (_|_){
943
- @@ -166,9 +102 ,6 @@
930
+ @@ -166,9 +99 ,6 @@
944
931
// [eval]
945
932
err: (_|_){
946
933
// [eval] embed.fieldWithAnd.a.err: field not allowed:
@@ -950,7 +937,7 @@ diff old new
950
937
// ./in.cue:20:13
951
938
}
952
939
}
953
- @@ -179,20 +112 ,15 @@
940
+ @@ -179,20 +109 ,15 @@
954
941
a: (int){ int }
955
942
}
956
943
B: (struct){
@@ -976,7 +963,7 @@ diff old new
976
963
}
977
964
}
978
965
andEmbed: (_|_){
979
- @@ -208,17 +136 ,11 @@
966
+ @@ -208,17 +133 ,11 @@
980
967
}
981
968
d: (_|_){
982
969
// [eval]
@@ -995,7 +982,7 @@ diff old new
995
982
}
996
983
}
997
984
nonDef: (struct){
998
- @@ -227,12 +149 ,12 @@
985
+ @@ -227,12 +146 ,12 @@
999
986
a: (string){ string }
1000
987
}
1001
988
#Y: (#struct){
@@ -1012,7 +999,7 @@ diff old new
1012
999
}
1013
1000
}
1014
1001
}
1015
- @@ -242,12 +164 ,12 @@
1002
+ @@ -242,12 +161 ,12 @@
1016
1003
Name: (string){ string }
1017
1004
}
1018
1005
#Step: (#struct){
@@ -1029,7 +1016,7 @@ diff old new
1029
1016
}
1030
1017
out: (#struct){
1031
1018
Name: (string){ "foo" }
1032
- @@ -257,21 +179 ,15 @@
1019
+ @@ -257,21 +176 ,15 @@
1033
1020
}
1034
1021
withIndirect: (_|_){
1035
1022
// [eval]
@@ -1056,7 +1043,7 @@ diff old new
1056
1043
}
1057
1044
normalValidator: (_|_){
1058
1045
// [eval]
1059
- @@ -281,20 +197 ,17 @@
1046
+ @@ -281,20 +194 ,17 @@
1060
1047
}
1061
1048
x: (_|_){
1062
1049
// [eval]
@@ -1080,7 +1067,7 @@ diff old new
1080
1067
#X: (_){
1081
1068
matchN(0, (#list){
1082
1069
})
1083
- @@ -301,17 +214 ,10 @@
1070
+ @@ -301,17 +211 ,10 @@
1084
1071
a?: (int){ int }
1085
1072
b?: (int){ int }
1086
1073
}
@@ -1102,7 +1089,7 @@ diff old new
1102
1089
}
1103
1090
}
1104
1091
t2: (_|_){
1105
- @@ -330,10 +236 ,7 @@
1092
+ @@ -330,10 +233 ,7 @@
1106
1093
// [eval]
1107
1094
b: (_|_){
1108
1095
// [eval] embed.openValidator.t2.a.b: conflicting values 1 and {b?:Y} (mismatched types int and struct):
@@ -1113,7 +1100,7 @@ diff old new
1113
1100
// ./validators.cue:24:8
1114
1101
// embed.openValidator.t2.a.b: invalid value 1 (does not satisfy matchN): 0 matched, expected 1:
1115
1102
// ./validators.cue:21:5
1116
- @@ -360,16 +263 ,11 @@
1103
+ @@ -360,16 +260 ,11 @@
1117
1104
}
1118
1105
out: (_|_){
1119
1106
// [eval]
@@ -1131,7 +1118,7 @@ diff old new
1131
1118
}
1132
1119
}
1133
1120
transitiveWithEmbed: (_|_){
1134
- @@ -385,17 +283 ,11 @@
1121
+ @@ -385,17 +280 ,11 @@
1135
1122
}
1136
1123
out: (_|_){
1137
1124
// [eval]
@@ -1150,7 +1137,7 @@ diff old new
1150
1137
}
1151
1138
}
1152
1139
}
1153
- @@ -414,8 +306 ,8 @@
1140
+ @@ -414,8 +303 ,8 @@
1154
1141
// ./issue3832.cue:8:16
1155
1142
}
1156
1143
outFirstName: (_|_){
@@ -1161,7 +1148,7 @@ diff old new
1161
1148
}
1162
1149
}
1163
1150
}
1164
- @@ -425,21 +317 ,34 @@
1151
+ @@ -425,21 +314 ,34 @@
1165
1152
}, (#struct){
1166
1153
pass: (#struct){
1167
1154
let self#1 = (_|_){
@@ -1201,7 +1188,7 @@ diff old new
1201
1188
_subject: (#struct){
1202
1189
in: (_){ _ }
1203
1190
out: (#struct){
1204
- @@ -448,35 +353,24 @@
1191
+ @@ -448,30 +350,12 @@
1205
1192
// ./issue3832.cue:8:16
1206
1193
}
1207
1194
outFirstName: (_|_){
@@ -1229,33 +1216,16 @@ diff old new
1229
1216
- }
1230
1217
- outFirstName: (string){ "Sam" }
1231
1218
- }
1232
- - }
1233
- - issue3833: (struct){
1234
- - out: (#struct){
1235
- - a: (#struct){
1236
- - b: (string){ "foo" }
1237
1219
+ // [incomplete] issue3832._subject.out.outFirstName: undefined field: firstName:
1238
1220
+ // ./issue3832.cue:9:24
1239
1221
+ }
1240
1222
+ }
1241
1223
+ }
1242
1224
+ results: ~(issue3832._assert.pass)
1243
- + }
1244
- + issue3833: (_|_){
1245
- + // [eval]
1246
- + out: (_|_){
1247
- + // [eval]
1248
- + a: (_|_){
1249
- + // [eval]
1250
- + b: (_|_){
1251
- + // [eval] issue3833.out.a.b: field not allowed:
1252
- + // ./issue3833.cue:4:6
1253
- + // ./issue3833.cue:10:3
1254
- + }
1255
- c: (string){ "foo" }
1256
- }
1257
- }
1258
- @@ -541,38 +435,11 @@
1225
+ }
1226
+ issue3833: (struct){
1227
+ out: (#struct){
1228
+ @@ -541,38 +425,11 @@
1259
1229
#Main: (#struct){
1260
1230
namespace: (string){ string }
1261
1231
output: (_|_){
@@ -1296,7 +1266,7 @@ diff old new
1296
1266
let base#6 = (#struct){
1297
1267
someMsg: (string){ string }
1298
1268
obs: (#struct){ |(*(#struct){
1299
- @@ -615,6 +482 ,19 @@
1269
+ @@ -615,6 +472 ,19 @@
1300
1270
}
1301
1271
}
1302
1272
}
@@ -1316,7 +1286,7 @@ diff old new
1316
1286
}
1317
1287
}
1318
1288
out: (#struct){
1319
- @@ -634,7 +514 ,9 @@
1289
+ @@ -634,7 +504 ,9 @@
1320
1290
}
1321
1291
out: (#struct){
1322
1292
b1: (_|_){
@@ -1327,7 +1297,7 @@ diff old new
1327
1297
// disjunction.withErr.t1.out.b1: conflicting values null and {b2:{b3:params.mayExistLater}} (mismatched types null and struct):
1328
1298
// ./validators.cue:29:7
1329
1299
// ./validators.cue:31:17
1330
- @@ -644,17 +526 ,8 @@
1300
+ @@ -644,17 +516 ,8 @@
1331
1301
// ./validators.cue:32:17
1332
1302
// disjunction.withErr.t1.out.b1.b2.b3: undefined field: mayExistLater:
1333
1303
// ./validators.cue:29:22
@@ -1349,7 +1319,6 @@ diff old new
1349
1319
}
1350
1320
-- diff/todo/p1 --
1351
1321
embed.openValidator.t1.err: unexpected pass.
1352
- issue3833.out.a.b: field should be alloweds
1353
1322
-- diff/todo/p2 --
1354
1323
and.transitive(WithEmbed)?.out.ok: unexpected error
1355
1324
-- out/eval --
0 commit comments