cuelang.org/go@v0.13.0/cue/testdata/compile/erralias.txtar (about)

     1  // Causes a stack overflow on evalv2 and evalv3.
     2  #skip
     3  -- in.cue --
     4   let X = {}
     5  
     6  [Y="foo"]: 3
     7  a:         Y
     8  
     9  c: {}
    10  for x in c {a: E}
    11  
    12  Z1=[Z2=string]: Z1 + Z2
    13  -- out/compile --
    14  unreferenced alias or let clause X:
    15      ./in.cue:1:2
    16  a: reference "Y" not found:
    17      ./in.cue:4:12
    18  for[].a: reference "E" not found:
    19      ./in.cue:7:16
    20  --- in.cue
    21  {
    22    let X#1 = {}
    23    ["foo"]: 3
    24    a: _|_(reference "Y" not found)
    25    c: {}
    26    for _, x in 〈0;c〉 {
    27      a: _|_(reference "E" not found)
    28    }
    29    [string]: (〈0;(〈0;-〉)〉 + 〈0;-〉)
    30  }