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

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