...

Text file src/cuelang.org/go/cue/testdata/compile/erralias.txtar

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

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

View as plain text