...

Text file src/cuelang.org/go/cue/testdata/export/021.txtar

Documentation: cuelang.org/go/cue/testdata/export

     1# DO NOT EDIT; generated by go run testdata/gen.go
     2#
     3raw: true
     4eval: 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
    16A = a
    17b: {
    18	idx: A[str]
    19	a: {
    20		b: 4
    21	}
    22	str: string
    23}
    24a: {
    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 --
    46Leaks:  0
    47Freed:  8
    48Reused: 3
    49Allocs: 5
    50Retain: 10
    51
    52Unifications: 8
    53Conjuncts:    14
    54Disjuncts:    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}

View as plain text