File tree Expand file tree Collapse file tree 1 file changed +56
-12
lines changed Expand file tree Collapse file tree 1 file changed +56
-12
lines changed Original file line number Diff line number Diff line change @@ -121,18 +121,33 @@ issue3546: reduced: {
121
121
out: #Network
122
122
out: val
123
123
}
124
+ -- acrossdisjunction.cue --
125
+ import "list"
126
+
127
+ issue3679: {
128
+ // The result of list.Repeat is structure shared in env. This needs to be
129
+ // "unshared" within the disjunction. Ensure that unsharing a shared Vertex
130
+ // works arcross disjunction boundaries.
131
+ b: null | [string]
132
+ b: list.Repeat([for k, v in [0] { "bar" }], 1)
133
+ }
124
134
-- out/eval/stats --
125
- Leaks: 2
126
- Freed: 148
127
- Reused: 141
128
- Allocs: 9
129
- Retain: 19
135
+ Leaks: 3
136
+ Freed: 158
137
+ Reused: 151
138
+ Allocs: 10
139
+ Retain: 21
130
140
131
- Unifications: 150
132
- Conjuncts: 309
133
- Disjuncts: 165
141
+ Unifications: 159
142
+ Conjuncts: 331
143
+ Disjuncts: 177
134
144
-- out/evalalpha --
135
145
(struct){
146
+ issue3679: (struct){
147
+ b: (#list){
148
+ 0: (string){ string }
149
+ }
150
+ }
136
151
issue3641: (struct){
137
152
simplified: (struct){
138
153
t1: (struct){
@@ -359,7 +374,16 @@ Disjuncts: 165
359
374
diff old new
360
375
--- old
361
376
+++ new
362
- @@ -11,102 +11,75 @@
377
+ @@ -1,7 +1,7 @@
378
+ (struct){
379
+ issue3679: (struct){
380
+ b: (#list){
381
+ - 0: (string){ "bar" }
382
+ + 0: (string){ string }
383
+ }
384
+ }
385
+ issue3641: (struct){
386
+ @@ -16,102 +16,75 @@
363
387
}
364
388
}
365
389
#Config1: (#struct){
@@ -531,7 +555,7 @@ diff old new
531
555
}
532
556
Config: (#struct){
533
557
cfg: (#struct){
534
- @@ -132 ,24 +105 ,13 @@
558
+ @@ -137 ,24 +110 ,13 @@
535
559
}
536
560
}
537
561
#Config1: (#struct){
@@ -559,7 +583,7 @@ diff old new
559
583
}
560
584
#Config: (#struct){
561
585
cfg: (#struct){
562
- @@ -157 ,12 +119 ,7 @@
586
+ @@ -162 ,12 +124 ,7 @@
563
587
}
564
588
}
565
589
}
@@ -573,7 +597,7 @@ diff old new
573
597
out: (#struct){
574
598
sch: (#struct){
575
599
cfg: (#struct){
576
- @@ -231 ,9 +188 ,7 @@
600
+ @@ -236 ,9 +193 ,7 @@
577
601
}
578
602
debug: (struct){
579
603
sharingOn: (struct){
@@ -586,6 +610,11 @@ diff old new
586
610
}
587
611
-- out/eval --
588
612
(struct){
613
+ issue3679: (struct){
614
+ b: (#list){
615
+ 0: (string){ "bar" }
616
+ }
617
+ }
589
618
issue3641: (struct){
590
619
simplified: (struct){
591
620
t1: (struct){
@@ -854,6 +883,21 @@ diff old new
854
883
}
855
884
}
856
885
-- out/compile --
886
+ --- acrossdisjunction.cue
887
+ {
888
+ issue3679: {
889
+ b: (null|[
890
+ string,
891
+ ])
892
+ b: 〈import;list〉.Repeat([
893
+ for k, v in [
894
+ 0,
895
+ ] {
896
+ "bar"
897
+ },
898
+ ], 1)
899
+ }
900
+ }
857
901
--- dupshare.cue
858
902
{
859
903
issue3641: {
You can’t perform that action at this time.
0 commit comments