cuelang.org/go@v0.13.0/internal/core/export/testdata/selfcontained/issue2247.txtar (about)

     1  #inlineImports: true
     2  -- cue.mod/module.cue --
     3  module: "example.com"
     4  language: version: "v0.9.0"
     5  -- x.cue --
     6  import "example.com/t"
     7  
     8  f: t.p
     9  -- t/t.cue --
    10  package t
    11  
    12  p: {
    13  	c: [int]
    14  	d: [c][0]
    15  	// TODO: simplify these:
    16  	e: {out: c}.out
    17  	f: {out: q}.out
    18  	g: {out: q}.out
    19  
    20  	h: {out: r: s: string}.out
    21  	i: h.r
    22  	j: h.r.s
    23  
    24  	k: r.k
    25  	l: r.k.l
    26  }
    27  
    28  q: {
    29  	x: [...int]
    30  }
    31  
    32  r: {out: k: l: string}.out
    33  
    34  -- out/self/default --
    35  import "example.com/t"
    36  
    37  f: t.p
    38  -- out/self/expand_imports --
    39  f: {
    40  	c: [int]
    41  	d: [c][0]
    42  	// TODO: simplify these:
    43  	e: {
    44  		out: c
    45  	}.out
    46  	f: {
    47  		out: Q
    48  	}.out
    49  	g: {
    50  		out: Q
    51  	}.out
    52  	h: {
    53  		out: {
    54  			r: {
    55  				s: string
    56  			}
    57  		}
    58  	}.out
    59  	i: h.r
    60  	j: h.r.s
    61  	k: K
    62  	l: K.l
    63  }
    64  
    65  //cue:path: "example.com/t".q
    66  let Q = {
    67  	x: [...int]
    68  }
    69  
    70  //cue:path: "example.com/t".r.k
    71  let K = {
    72  	l: string
    73  }