github.com/solo-io/cue@v0.4.7/cue/testdata/definitions/issue497.txtar (about)

     1  -- in.cue --
     2  #A : _
     3  
     4  #N: #A & {
     5    f: j: {
     6      n: "hi"
     7    }
     8  }
     9  
    10  l: #N
    11  
    12  -- out/eval --
    13  (struct){
    14    #A: (_){ _ }
    15    #N: (#struct){
    16      f: (#struct){
    17        j: (#struct){
    18          n: (string){ "hi" }
    19        }
    20      }
    21    }
    22    l: (#struct){
    23      f: (#struct){
    24        j: (#struct){
    25          n: (string){ "hi" }
    26        }
    27      }
    28    }
    29  }
    30  -- out/compile --
    31  --- in.cue
    32  {
    33    #A: _
    34    #N: (〈0;#A〉 & {
    35      f: {
    36        j: {
    37          n: "hi"
    38        }
    39      }
    40    })
    41    l: 〈0;#N〉
    42  }