github.com/joomcode/cue@v0.4.4-0.20221111115225-539fe3512047/cue/testdata/eval/resolve_basic.txtar (about)

     1  -- in.cue --
     2  a: 1
     3  b: a + 1
     4  d: {
     5  	x: _
     6  	y: b + x
     7  }
     8  e: d & {
     9  	x: 5
    10  }
    11  -- out/eval --
    12  (struct){
    13    a: (int){ 1 }
    14    b: (int){ 2 }
    15    d: (struct){
    16      x: (_){ _ }
    17      y: (_|_){
    18        // [incomplete] d.y: non-concrete value _ in operand to +:
    19        //     ./in.cue:5:5
    20        //     ./in.cue:4:5
    21      }
    22    }
    23    e: (struct){
    24      x: (int){ 5 }
    25      y: (int){ 7 }
    26    }
    27  }
    28  -- out/compile --
    29  --- in.cue
    30  {
    31    a: 1
    32    b: (〈0;a〉 + 1)
    33    d: {
    34      x: _
    35      y: (〈1;b〉 + 〈0;x〉)
    36    }
    37    e: (〈0;d〉 & {
    38      x: 5
    39    })
    40  }