cuelang.org/go@v0.10.1/cue/testdata/references/package.txtar (about)

     1  -- cue.mod/module.cue --
     2  module: "mod.test"
     3  language: version: "v0.9.0"
     4  -- in.cue --
     5  package exitcode
     6  
     7  import (
     8  	pkg "foo.com/example"
     9  )
    10  
    11  a: 1
    12  
    13  incomplete: pkg.Settings
    14  -- cue.mod/pkg/foo.com/example/example.cue --
    15  package example
    16  
    17  // An incomplete error in a package is not transferred to a
    18  // package that is using it.
    19  //
    20  // Issue #550
    21  blah: Settings.anyKey
    22  Settings: {}
    23  -- out/ --
    24  
    25  -- out/eval/stats --
    26  Leaks:  1
    27  Freed:  4
    28  Reused: 1
    29  Allocs: 4
    30  Retain: 2
    31  
    32  Unifications: 5
    33  Conjuncts:    6
    34  Disjuncts:    6
    35  -- out/eval --
    36  (struct){
    37    a: (int){ 1 }
    38    incomplete: (struct){
    39    }
    40  }
    41  -- out/compile --
    42  --- in.cue
    43  {
    44    a: 1
    45    incomplete: 〈import;"foo.com/example"〉.Settings
    46  }