@@ -188,15 +188,15 @@ issue3474: topValidator: failType: {
188
188
}
189
189
190
190
-- out/eval/stats --
191
- Leaks: 5
192
- Freed: 109
193
- Reused: 102
194
- Allocs: 12
191
+ Leaks: 1
192
+ Freed: 117
193
+ Reused: 110
194
+ Allocs: 8
195
195
Retain: 12
196
196
197
- Unifications: 114
198
- Conjuncts: 222
199
- Disjuncts: 123
197
+ Unifications: 118
198
+ Conjuncts: 226
199
+ Disjuncts: 131
200
200
-- out/evalalpha --
201
201
Errors:
202
202
issue3418.0: conflicting values 2 and 1:
@@ -418,29 +418,42 @@ Result:
418
418
diff old new
419
419
--- old
420
420
+++ new
421
- @@ -1,32 +1,28 @@
421
+ @@ -1,49 +1,28 @@
422
422
Errors:
423
+ -callOfCallToValidator.e: cannot call previously called validator b:
424
+ - ./in.cue:94:5
425
+ -issue3418.t1: invalid value "foo" (does not satisfy matchN(1, _|_(issue3418.0: conflicting values 2 and 1))): conflicting values 2 and 1:
426
+ - ./issue3418.cue:1:24
427
+ - ./issue3418.cue:1:16
428
+ - ./issue3418.cue:1:31
423
429
+issue3418.0: conflicting values 2 and 1:
424
- + ./issue3418.cue:1:35
425
- + ./issue3418.cue:1:37
426
- +issue3418.t3.0: conflicting values 2 and 1:
427
- + ./issue3418.cue:6:16
428
- + ./issue3418.cue:6:18
429
- +issue3418.t4.0: conflicting values 2 and 1:
430
- + ./issue3418.cue:10:16
431
- + ./issue3418.cue:10:18
432
- callOfCallToValidator.e: cannot call previously called validator b:
433
- ./in.cue:94:5
434
- -issue3418.t2: invalid value "foo" (does not satisfy matchN(1, _|_(issue3418.0: conflicting values 2 and 1))): 0 matched, expected 1:
430
+ ./issue3418.cue:1:35
431
+ ./issue3418.cue:1:37
432
+ -issue3418.t2: invalid value "foo" (does not satisfy matchN(1, _|_(issue3418.0: conflicting values 2 and 1))): conflicting values 2 and 1:
435
433
- ./issue3418.cue:2:41
436
434
- ./issue3418.cue:2:16
437
435
- ./issue3418.cue:2:48
438
- -issue3418.t3.x: invalid value "foo" (does not satisfy matchN(1, _|_(issue3418.t3.0: conflicting values 2 and 1))): 0 matched, expected 1:
436
+ - ./issue3418.cue:2:52
437
+ - ./issue3418.cue:2:54
438
+ -issue3418.t3.x: invalid value "foo" (does not satisfy matchN(1, _|_(issue3418.t3.0: conflicting values 2 and 1))): conflicting values 2 and 1:
439
439
- ./issue3418.cue:6:5
440
440
- ./issue3418.cue:4:5
441
441
- ./issue3418.cue:5:5
442
442
- ./issue3418.cue:6:12
443
+ +issue3418.t3.0: conflicting values 2 and 1:
444
+ ./issue3418.cue:6:16
445
+ ./issue3418.cue:6:18
446
+ -issue3418.t4.x: invalid value "foo" (does not satisfy matchN(1, _|_(issue3418.t4.0: conflicting values 2 and 1))): conflicting values 2 and 1:
447
+ - ./issue3418.cue:10:5
448
+ - ./issue3418.cue:9:5
449
+ - ./issue3418.cue:10:12
450
+ +issue3418.t4.0: conflicting values 2 and 1:
451
+ ./issue3418.cue:10:16
452
+ ./issue3418.cue:10:18
453
+ - ./issue3418.cue:11:5
443
454
-issue3474.structValidator.failAfter.A: invalid value {C:true,B*:if true true} (does not satisfy struct.MaxFields(1)): len(fields) > MaxFields(1) (2 > 1):
455
+ +callOfCallToValidator.e: cannot call previously called validator b:
456
+ + ./in.cue:94:5
444
457
+issue3474.structValidator.failAfter.A: invalid value {C:true,B:true} (does not satisfy struct.MaxFields(1)): len(fields) > MaxFields(1) (2 > 1):
445
458
./issue3474.cue:12:5
446
459
./issue3474.cue:12:22
@@ -461,23 +474,23 @@ diff old new
461
474
462
475
Result:
463
476
(_|_){
464
- @@ -46 ,7 +42,6 @@
477
+ @@ -63 ,7 +42,6 @@
465
478
kv: (_|_){
466
479
// [incomplete] incompleteError2.MyType.kv: invalid value {} (does not satisfy struct.MinFields(1)): len(fields) < MinFields(1) (0 < 1):
467
480
// ./in.cue:22:7
468
481
- // ./in.cue:21:7
469
482
// ./in.cue:22:24
470
483
}
471
484
}
472
- @@ -70 ,7 +65,6 @@
485
+ @@ -87 ,7 +65,6 @@
473
486
kv: (_|_){
474
487
// [incomplete] violation.#MyType.kv: invalid value {} (does not satisfy struct.MinFields(1)): len(fields) < MinFields(1) (0 < 1):
475
488
// ./in.cue:49:7
476
489
- // ./in.cue:48:7
477
490
// ./in.cue:49:24
478
491
}
479
492
}
480
- @@ -117 ,15 +111,10 @@
493
+ @@ -134 ,15 +111,10 @@
481
494
0: (int){ 1 }
482
495
}
483
496
}
@@ -494,53 +507,56 @@ diff old new
494
507
// ./in.cue:112:20
495
508
}
496
509
}
497
- @@ -132,25 +121,31 @@
498
- }
510
+ @@ -150,18 +122,12 @@
499
511
issue3418: (_|_){
500
512
// [eval]
501
- - t1: (string){ "foo" }
502
- + t1: (_|_){
513
+ t1: (_|_){
514
+ - // [eval] issue3418.t1: invalid value "foo" (does not satisfy matchN(1, _|_(issue3418.0: conflicting values 2 and 1))): conflicting values 2 and 1:
515
+ - // ./issue3418.cue:1:24
516
+ - // ./issue3418.cue:1:16
517
+ - // ./issue3418.cue:1:31
503
518
+ // [eval] issue3418.0: conflicting values 2 and 1:
504
- + // ./issue3418.cue:1:35
505
- + // ./issue3418.cue:1:37
506
- + }
519
+ // ./issue3418.cue:1:35
520
+ // ./issue3418.cue:1:37
521
+ }
507
522
t2: (_|_){
508
- - // [eval] issue3418.t2: invalid value "foo" (does not satisfy matchN(1, _|_(issue3418.0: conflicting values 2 and 1))): 0 matched, expected 1:
523
+ - // [eval] issue3418.t2: invalid value "foo" (does not satisfy matchN(1, _|_(issue3418.0: conflicting values 2 and 1))): conflicting values 2 and 1:
509
524
- // ./issue3418.cue:2:41
510
525
- // ./issue3418.cue:2:16
511
526
- // ./issue3418.cue:2:48
512
527
+ // [eval] issue3418.0: conflicting values 2 and 1:
513
- + // ./issue3418.cue:2:52
514
- + // ./issue3418.cue:2:54
528
+ // ./issue3418.cue:2:52
529
+ // ./issue3418.cue:2:54
515
530
}
531
+ @@ -168,11 +134,7 @@
516
532
t3: (_|_){
517
533
// [eval]
518
534
x: (_|_){
519
- - // [eval] issue3418.t3.x: invalid value "foo" (does not satisfy matchN(1, _|_(issue3418.t3.0: conflicting values 2 and 1))): 0 matched, expected 1:
535
+ - // [eval] issue3418.t3.x: invalid value "foo" (does not satisfy matchN(1, _|_(issue3418.t3.0: conflicting values 2 and 1))): conflicting values 2 and 1:
520
536
- // ./issue3418.cue:6:5
521
537
- // ./issue3418.cue:4:5
522
538
- // ./issue3418.cue:5:5
523
539
- // ./issue3418.cue:6:12
524
- - }
525
- - }
526
- - t4: (struct){
527
- - x: (string){ "foo" }
528
540
+ // [eval] issue3418.t3.0: conflicting values 2 and 1:
529
- + // ./issue3418.cue:6:16
530
- + // ./issue3418.cue:6:18
531
- + }
532
- + }
533
- + t4: (_|_){
534
- + // [eval]
535
- + x: (_|_){
541
+ // ./issue3418.cue:6:16
542
+ // ./issue3418.cue:6:18
543
+ }
544
+ @@ -180,13 +142,9 @@
545
+ t4: (_|_){
546
+ // [eval]
547
+ x: (_|_){
548
+ - // [eval] issue3418.t4.x: invalid value "foo" (does not satisfy matchN(1, _|_(issue3418.t4.0: conflicting values 2 and 1))): conflicting values 2 and 1:
549
+ - // ./issue3418.cue:10:5
550
+ - // ./issue3418.cue:9:5
551
+ - // ./issue3418.cue:10:12
536
552
+ // [eval] issue3418.t4.0: conflicting values 2 and 1:
537
- + // ./issue3418.cue:10:16
538
- + // ./issue3418.cue:10:18
539
- + }
553
+ // ./issue3418.cue:10:16
554
+ // ./issue3418.cue:10:18
555
+ - // ./issue3418.cue:11:5
556
+ }
540
557
}
541
558
}
542
- issue3474: (_|_){
543
- @@ -165,10 +160,9 @@
559
+ @@ -202,10 +160,9 @@
544
560
failAfter: (_|_){
545
561
// [eval]
546
562
A: (_|_){
@@ -552,23 +568,23 @@ diff old new
552
568
C: (bool){ true }
553
569
B: (bool){ true }
554
570
}
555
- @@ -178 ,7 +172,6 @@
571
+ @@ -215 ,7 +172,6 @@
556
572
// [incomplete] issue3474.structValidator.incomplete.A: invalid value {} (does not satisfy struct.MinFields(1)): len(fields) < MinFields(1) (0 < 1):
557
573
// ./issue3474.cue:20:5
558
574
// ./issue3474.cue:20:22
559
575
- // ./issue3474.cue:21:5
560
576
}
561
577
}
562
578
failClosed: (_|_){
563
- @@ -187 ,7 +180,6 @@
579
+ @@ -224 ,7 +180,6 @@
564
580
// [eval] issue3474.structValidator.failClosed.#A: invalid value {} (does not satisfy struct.MinFields(1)): len(fields) < MinFields(1) (0 < 1):
565
581
// ./issue3474.cue:27:6
566
582
// ./issue3474.cue:27:23
567
583
- // ./issue3474.cue:28:6
568
584
}
569
585
}
570
586
}
571
- @@ -202 ,14 +194,12 @@
587
+ @@ -239 ,14 +194,12 @@
572
588
// [eval] issue3474.topValidator.fail.A: invalid value 1 (does not satisfy matchN(1, [>10])): 0 matched, expected 1:
573
589
// ./issue3474.cue:41:5
574
590
// ./issue3474.cue:41:12
@@ -584,7 +600,7 @@ diff old new
584
600
}), int) }
585
601
}
586
602
failType: (_|_){
587
- @@ -218 ,7 +208,6 @@
603
+ @@ -255 ,7 +208,6 @@
588
604
// [eval] issue3474.topValidator.failType.A: invalid value {C:1} (does not satisfy matchN(1, [>10])): 0 matched, expected 1:
589
605
// ./issue3474.cue:53:5
590
606
// ./issue3474.cue:53:12
@@ -596,15 +612,32 @@ diff old new
596
612
Errors:
597
613
callOfCallToValidator.e: cannot call previously called validator b:
598
614
./in.cue:94:5
599
- issue3418.t2: invalid value "foo" (does not satisfy matchN(1, _|_(issue3418.0: conflicting values 2 and 1))): 0 matched, expected 1:
615
+ issue3418.t1: invalid value "foo" (does not satisfy matchN(1, _|_(issue3418.0: conflicting values 2 and 1))): conflicting values 2 and 1:
616
+ ./issue3418.cue:1:24
617
+ ./issue3418.cue:1:16
618
+ ./issue3418.cue:1:31
619
+ ./issue3418.cue:1:35
620
+ ./issue3418.cue:1:37
621
+ issue3418.t2: invalid value "foo" (does not satisfy matchN(1, _|_(issue3418.0: conflicting values 2 and 1))): conflicting values 2 and 1:
600
622
./issue3418.cue:2:41
601
623
./issue3418.cue:2:16
602
624
./issue3418.cue:2:48
603
- issue3418.t3.x: invalid value "foo" (does not satisfy matchN(1, _|_(issue3418.t3.0: conflicting values 2 and 1))): 0 matched, expected 1:
625
+ ./issue3418.cue:2:52
626
+ ./issue3418.cue:2:54
627
+ issue3418.t3.x: invalid value "foo" (does not satisfy matchN(1, _|_(issue3418.t3.0: conflicting values 2 and 1))): conflicting values 2 and 1:
604
628
./issue3418.cue:6:5
605
629
./issue3418.cue:4:5
606
630
./issue3418.cue:5:5
607
631
./issue3418.cue:6:12
632
+ ./issue3418.cue:6:16
633
+ ./issue3418.cue:6:18
634
+ issue3418.t4.x: invalid value "foo" (does not satisfy matchN(1, _|_(issue3418.t4.0: conflicting values 2 and 1))): conflicting values 2 and 1:
635
+ ./issue3418.cue:10:5
636
+ ./issue3418.cue:9:5
637
+ ./issue3418.cue:10:12
638
+ ./issue3418.cue:10:16
639
+ ./issue3418.cue:10:18
640
+ ./issue3418.cue:11:5
608
641
issue3474.structValidator.failAfter.A: invalid value {C:true,B*:if true true} (does not satisfy struct.MaxFields(1)): len(fields) > MaxFields(1) (2 > 1):
609
642
./issue3474.cue:12:5
610
643
./issue3474.cue:12:22
@@ -727,25 +760,45 @@ Result:
727
760
}
728
761
issue3418: (_|_){
729
762
// [eval]
730
- t1: (string){ "foo" }
763
+ t1: (_|_){
764
+ // [eval] issue3418.t1: invalid value "foo" (does not satisfy matchN(1, _|_(issue3418.0: conflicting values 2 and 1))): conflicting values 2 and 1:
765
+ // ./issue3418.cue:1:24
766
+ // ./issue3418.cue:1:16
767
+ // ./issue3418.cue:1:31
768
+ // ./issue3418.cue:1:35
769
+ // ./issue3418.cue:1:37
770
+ }
731
771
t2: (_|_){
732
- // [eval] issue3418.t2: invalid value "foo" (does not satisfy matchN(1, _|_(issue3418.0: conflicting values 2 and 1))): 0 matched, expected 1:
772
+ // [eval] issue3418.t2: invalid value "foo" (does not satisfy matchN(1, _|_(issue3418.0: conflicting values 2 and 1))): conflicting values 2 and 1:
733
773
// ./issue3418.cue:2:41
734
774
// ./issue3418.cue:2:16
735
775
// ./issue3418.cue:2:48
776
+ // ./issue3418.cue:2:52
777
+ // ./issue3418.cue:2:54
736
778
}
737
779
t3: (_|_){
738
780
// [eval]
739
781
x: (_|_){
740
- // [eval] issue3418.t3.x: invalid value "foo" (does not satisfy matchN(1, _|_(issue3418.t3.0: conflicting values 2 and 1))): 0 matched, expected 1:
782
+ // [eval] issue3418.t3.x: invalid value "foo" (does not satisfy matchN(1, _|_(issue3418.t3.0: conflicting values 2 and 1))): conflicting values 2 and 1:
741
783
// ./issue3418.cue:6:5
742
784
// ./issue3418.cue:4:5
743
785
// ./issue3418.cue:5:5
744
786
// ./issue3418.cue:6:12
787
+ // ./issue3418.cue:6:16
788
+ // ./issue3418.cue:6:18
745
789
}
746
790
}
747
- t4: (struct){
748
- x: (string){ "foo" }
791
+ t4: (_|_){
792
+ // [eval]
793
+ x: (_|_){
794
+ // [eval] issue3418.t4.x: invalid value "foo" (does not satisfy matchN(1, _|_(issue3418.t4.0: conflicting values 2 and 1))): conflicting values 2 and 1:
795
+ // ./issue3418.cue:10:5
796
+ // ./issue3418.cue:9:5
797
+ // ./issue3418.cue:10:12
798
+ // ./issue3418.cue:10:16
799
+ // ./issue3418.cue:10:18
800
+ // ./issue3418.cue:11:5
801
+ }
749
802
}
750
803
}
751
804
issue3474: (_|_){
0 commit comments