github.com/solo-io/cue@v0.4.7/cue/testdata/cycle/issue306.txtar (about)

     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        }
    22      }
    23    }
    24  }
    25  -- out/compile --
    26  --- in.cue
    27  {
    28    a: 12
    29    #Controller: {
    30      settings: {
    31        controller: ă€ˆ2;#Controller〉
    32      }
    33    }
    34  }