this repo has no description
1Test comprehensions that are defined above the reference root.
2
3Because the references are not at addressable locations, the printed
4references are bogus. However, this simply tests they are found, reported,
5and do not cause a crash.
6
7TODO: filter bogus references.
8-- in.cue --
9for key, value in { test: 1 } {
10 ("a"): b: k1: key
11 ("a"): b: v1: value
12 a: b: k2: key
13 a: b: v2: value
14}
15a: {
16 for key, value in { test: 1 } {
17 ("b"): k3: key
18 ("b"): v3: value
19 b: k4: key
20 b: v4: value
21 }
22 b: {}
23}
24-- out/dependencies/field --
25line reference path of resulting vertex
26-- out/dependencies/all --
27line reference path of resulting vertex
284: key => **non-rooted**
295: value => **non-rooted**
302: key => **non-rooted**
313: value => **non-rooted**
32-- out/dependencies/dynamic --
33line reference path of resulting vertex
344: key => **non-rooted**
355: value => **non-rooted**
3611: key => **non-rooted**
3712: value => **non-rooted**
382: key => **non-rooted**
393: value => **non-rooted**
409: key => **non-rooted**
4110: value => **non-rooted**
42-- out/dependencies-v3/stats/field --
43// COUNT: 0
44-- out/dependencies-v3/stats/all --
45// COUNT: 8
46-- out/dependencies-v3/stats/dynamic --
47// COUNT: 16