cuelang.org/go@v0.10.1/cue/testdata/export/021.txtar (about)

     1  # DO NOT EDIT; generated by go run testdata/gen.go
     2  #
     3  raw: true
     4  eval: true
     5  -- in.cue --
     6  {
     7  	b: {
     8  		idx: a[str]
     9  		str: string
    10  	}
    11  	b: a: b: 4
    12  	a: b: 3
    13  }
    14  -- out/def --
    15  
    16  A = a
    17  b: {
    18  	idx: A[str]
    19  	a: {
    20  		b: 4
    21  	}
    22  	str: string
    23  }
    24  a: {
    25  	b: 3
    26  }
    27  -- out/compile --
    28  --- in.cue
    29  {
    30    {
    31      b: {
    32        idx: 〈1;a〉[〈0;str〉]
    33        str: string
    34      }
    35      b: {
    36        a: {
    37          b: 4
    38        }
    39      }
    40      a: {
    41        b: 3
    42      }
    43    }
    44  }
    45  -- out/eval/stats --
    46  Leaks:  0
    47  Freed:  8
    48  Reused: 3
    49  Allocs: 5
    50  Retain: 10
    51  
    52  Unifications: 8
    53  Conjuncts:    14
    54  Disjuncts:    18
    55  -- out/eval --
    56  (struct){
    57    b: (struct){
    58      idx: (_|_){
    59        // [incomplete] b.idx: invalid non-ground value string (must be concrete string):
    60        //     ./in.cue:4:8
    61      }
    62      str: (string){ string }
    63      a: (struct){
    64        b: (int){ 4 }
    65      }
    66    }
    67    a: (struct){
    68      b: (int){ 3 }
    69    }
    70  }