cuelang.org/go@v0.10.1/cue/testdata/definitions/issue497.txtar (about)

     1  -- in.cue --
     2  #A: _
     3  
     4  #N: #A & {
     5  	f: j: {
     6  		n: "hi"
     7  	}
     8  }
     9  
    10  l: #N
    11  -- out/eval/stats --
    12  Leaks:  0
    13  Freed:  10
    14  Reused: 5
    15  Allocs: 5
    16  Retain: 0
    17  
    18  Unifications: 10
    19  Conjuncts:    15
    20  Disjuncts:    10
    21  -- out/eval --
    22  (struct){
    23    #A: (_){ _ }
    24    #N: (#struct){
    25      f: (#struct){
    26        j: (#struct){
    27          n: (string){ "hi" }
    28        }
    29      }
    30    }
    31    l: (#struct){
    32      f: (#struct){
    33        j: (#struct){
    34          n: (string){ "hi" }
    35        }
    36      }
    37    }
    38  }
    39  -- out/compile --
    40  --- in.cue
    41  {
    42    #A: _
    43    #N: (〈0;#A〉 & {
    44      f: {
    45        j: {
    46          n: "hi"
    47        }
    48      }
    49    })
    50    l: 〈0;#N〉
    51  }