cuelang.org/go@v0.10.1/cue/testdata/eval/sharing.txtar (about)

     1  
     2  
     3  -- in.cue --
     4  issue3062: ok1: {
     5  	#S: "a"
     6  	#o: x: #S
     7  	o: #o
     8  	o: X
     9  	X: x: A
    10  	A: "a"
    11  }
    12  -- out/eval/stats --
    13  Leaks:  0
    14  Freed:  11
    15  Reused: 4
    16  Allocs: 7
    17  Retain: 3
    18  
    19  Unifications: 11
    20  Conjuncts:    18
    21  Disjuncts:    12
    22  -- out/eval --
    23  (struct){
    24    issue3062: (struct){
    25      ok1: (struct){
    26        #S: (string){ "a" }
    27        #o: (#struct){
    28          x: (string){ "a" }
    29        }
    30        o: (#struct){
    31          x: (string){ "a" }
    32        }
    33        X: (struct){
    34          x: (string){ "a" }
    35        }
    36        A: (string){ "a" }
    37      }
    38    }
    39  }
    40  -- out/compile --
    41  --- in.cue
    42  {
    43    issue3062: {
    44      ok1: {
    45        #S: "a"
    46        #o: {
    47          x: 〈1;#S〉
    48        }
    49        o: 〈0;#o〉
    50        o: 〈0;X〉
    51        X: {
    52          x: 〈1;A〉
    53        }
    54        A: "a"
    55      }
    56    }
    57  }