cuelang.org/go@v0.13.0/cue/testdata/definitions/issue496.txtar (about)

     1  -- in.cue --
     2  #A: _
     3  
     4  #N: #A & {
     5  	_E: {
     6  		name: "hello"
     7  	}
     8  }
     9  
    10  l: #N
    11  -- out/eval/stats --
    12  Leaks:  0
    13  Freed:  8
    14  Reused: 4
    15  Allocs: 4
    16  Retain: 0
    17  
    18  Unifications: 8
    19  Conjuncts:    13
    20  Disjuncts:    8
    21  -- out/evalalpha --
    22  (struct){
    23    #A: (_){ _ }
    24    #N: (#struct){
    25      _E: (#struct){
    26        name: (string){ "hello" }
    27      }
    28    }
    29    l: ~(#N)
    30  }
    31  -- diff/-out/evalalpha<==>+out/eval --
    32  diff old new
    33  --- old
    34  +++ new
    35  @@ -5,9 +5,5 @@
    36         name: (string){ "hello" }
    37       }
    38     }
    39  -  l: (#struct){
    40  -    _E: (#struct){
    41  -      name: (string){ "hello" }
    42  -    }
    43  -  }
    44  +  l: ~(#N)
    45   }
    46  -- out/eval --
    47  (struct){
    48    #A: (_){ _ }
    49    #N: (#struct){
    50      _E: (#struct){
    51        name: (string){ "hello" }
    52      }
    53    }
    54    l: (#struct){
    55      _E: (#struct){
    56        name: (string){ "hello" }
    57      }
    58    }
    59  }
    60  -- out/compile --
    61  --- in.cue
    62  {
    63    #A: _
    64    #N: (〈0;#A〉 & {
    65      _E: {
    66        name: "hello"
    67      }
    68    })
    69    l: 〈0;#N〉
    70  }