File tree 1 file changed +117
-0
lines changed
1 file changed +117
-0
lines changed Original file line number Diff line number Diff line change
1
+ -- in.cue --
2
+ import (
3
+ "math"
4
+ "strings"
5
+ )
6
+
7
+ issue3584: reduced: t1: {
8
+ ref: out
9
+ trigger: *1 | 2
10
+ out: strings.SliceRunes("ABC", 0, trigger)
11
+ }
12
+
13
+ issue3584: reduced: t2: {
14
+ x: math.Abs(y)
15
+ y: *6 | 5
16
+ }
17
+ -- out/eval/stats --
18
+ Leaks: 0
19
+ Freed: 14
20
+ Reused: 5
21
+ Allocs: 9
22
+ Retain: 1
23
+
24
+ Unifications: 10
25
+ Conjuncts: 17
26
+ Disjuncts: 15
27
+ -- out/evalalpha --
28
+ (struct){
29
+ issue3584: (struct){
30
+ reduced: (struct){
31
+ t1: (struct){
32
+ ref: (_|_){
33
+ // [incomplete] issue3584.reduced.t1.out: error in call to strings.SliceRunes: non-concrete value _:
34
+ // ./in.cue:9:7
35
+ }
36
+ trigger: (int){ |(*(int){ 1 }, (int){ 2 }) }
37
+ out: (_|_){
38
+ // [incomplete] issue3584.reduced.t1.out: error in call to strings.SliceRunes: non-concrete value _:
39
+ // ./in.cue:9:7
40
+ }
41
+ }
42
+ t2: (struct){
43
+ x: (_|_){
44
+ // [incomplete] issue3584.reduced.t2.x: error in call to math.Abs: non-concrete value _:
45
+ // ./in.cue:13:5
46
+ }
47
+ y: (int){ |(*(int){ 6 }, (int){ 5 }) }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ -- diff/-out/evalalpha<==>+out/eval --
53
+ diff old new
54
+ --- old
55
+ +++ new
56
+ @@ -2,12 +2,21 @@
57
+ issue3584: (struct){
58
+ reduced: (struct){
59
+ t1: (struct){
60
+ - ref: (string){ "A" }
61
+ + ref: (_|_){
62
+ + // [incomplete] issue3584.reduced.t1.out: error in call to strings.SliceRunes: non-concrete value _:
63
+ + // ./in.cue:9:7
64
+ + }
65
+ trigger: (int){ |(*(int){ 1 }, (int){ 2 }) }
66
+ - out: (string){ "A" }
67
+ + out: (_|_){
68
+ + // [incomplete] issue3584.reduced.t1.out: error in call to strings.SliceRunes: non-concrete value _:
69
+ + // ./in.cue:9:7
70
+ + }
71
+ }
72
+ t2: (struct){
73
+ - x: (int){ 6 }
74
+ + x: (_|_){
75
+ + // [incomplete] issue3584.reduced.t2.x: error in call to math.Abs: non-concrete value _:
76
+ + // ./in.cue:13:5
77
+ + }
78
+ y: (int){ |(*(int){ 6 }, (int){ 5 }) }
79
+ }
80
+ }
81
+ -- out/eval --
82
+ (struct){
83
+ issue3584: (struct){
84
+ reduced: (struct){
85
+ t1: (struct){
86
+ ref: (string){ "A" }
87
+ trigger: (int){ |(*(int){ 1 }, (int){ 2 }) }
88
+ out: (string){ "A" }
89
+ }
90
+ t2: (struct){
91
+ x: (int){ 6 }
92
+ y: (int){ |(*(int){ 6 }, (int){ 5 }) }
93
+ }
94
+ }
95
+ }
96
+ }
97
+ -- out/compile --
98
+ --- in.cue
99
+ {
100
+ issue3584: {
101
+ reduced: {
102
+ t1: {
103
+ ref: 〈0;out〉
104
+ trigger: (*1|2)
105
+ out: 〈import;strings〉.SliceRunes("ABC", 0, 〈0;trigger〉)
106
+ }
107
+ }
108
+ }
109
+ issue3584: {
110
+ reduced: {
111
+ t2: {
112
+ x: 〈import;math〉.Abs(〈0;y〉)
113
+ y: (*6|5)
114
+ }
115
+ }
116
+ }
117
+ }
You can’t perform that action at this time.
0 commit comments