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

     1  -- cue.mod/module.cue --
     2  module: "example.com"
     3  
     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  
    15  -- cue.mod/pkg/foo.com/example/example.cue --
    16  package example
    17  
    18  // An incomplete error in a package is not transferred to a
    19  // package that is using it.
    20  //
    21  // Issue #550
    22  blah: Settings.anyKey
    23  Settings: {}
    24  
    25  -- out/ --
    26  
    27  -- out/eval --
    28  (struct){
    29    a: (int){ 1 }
    30    incomplete: (struct){
    31    }
    32  }
    33  -- out/compile --
    34  --- in.cue
    35  {
    36    a: 1
    37    incomplete: 〈import;"foo.com/example"〉.Settings
    38  }