Skip to content

Commit 541bf03

Browse files
committed
internal/core/eval: verify issue 306 is fixed
Change-Id: Ie54471b0d2459831c52e2ca53c4a648f6510cd3a Reviewed-on: https://cue-review.googlesource.com/c/cue/+/6944 Reviewed-by: CUE cueckoo <[email protected]> Reviewed-by: Marcel van Lohuizen <[email protected]>
1 parent dc2401c commit 541bf03

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

cue/testdata/cycle/issue306.txtar

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
-- in.cue --
2+
a: 12
3+
#Controller: settings: {
4+
controller: #Controller
5+
}
6+
7+
-- out/eval --
8+
Errors:
9+
#Controller.settings.controller: structural cycle
10+
11+
Result:
12+
(_|_){
13+
// [structural cycle]
14+
a: (int){ 12 }
15+
#Controller: (_|_){
16+
// [structural cycle]
17+
settings: (_|_){
18+
// [structural cycle]
19+
controller: (_|_){
20+
// [structural cycle] #Controller.settings.controller: structural cycle
21+
settings: (_|_){// {
22+
// controller: 〈2;#Controller〉
23+
// }
24+
}
25+
}
26+
}
27+
}
28+
}
29+
-- out/compile --
30+
--- in.cue
31+
{
32+
a: 12
33+
#Controller: {
34+
settings: {
35+
controller: 〈2;#Controller〉
36+
}
37+
}
38+
}

0 commit comments

Comments
 (0)