cuelang.org/go@v0.10.1/cue/testdata/cycle/issue306.txtar (about)

     1  -- in.cue --
     2  a: 12
     3  #Controller: settings: {
     4  	controller: #Controller
     5  }
     6  -- out/eval/stats --
     7  Leaks:  0
     8  Freed:  5
     9  Reused: 1
    10  Allocs: 4
    11  Retain: 0
    12  
    13  Unifications: 5
    14  Conjuncts:    5
    15  Disjuncts:    5
    16  -- out/eval --
    17  Errors:
    18  #Controller.settings.controller: structural cycle
    19  
    20  Result:
    21  (_|_){
    22    // [structural cycle]
    23    a: (int){ 12 }
    24    #Controller: (_|_){
    25      // [structural cycle]
    26      settings: (_|_){
    27        // [structural cycle]
    28        controller: (_|_){
    29          // [structural cycle] #Controller.settings.controller: structural cycle
    30        }
    31      }
    32    }
    33  }
    34  -- out/compile --
    35  --- in.cue
    36  {
    37    a: 12
    38    #Controller: {
    39      settings: {
    40        controller: ă€ˆ2;#Controller〉
    41      }
    42    }
    43  }