#Issue: 1596

exec cue eval . instance.json
cmp stdout expect-stdout-eval

exec cue def  . instance.json
cmp stdout expect-stdout-def

exec cue vet  . instance.json

-- cue.mod/module.cue --
module: "mod.test/config"
language: version: "v0.9.0"

-- components/widget.cue --
package widget

#Widget: {
        model: string
        explicit: "literal string"
}

-- config.cue --
package config

import (
	"mod.test/config/components:widget"
)

w: widget.#Widget

-- instance.json --
{
  "w": {
    "model": "retroencabulator"
  }
}

-- expect-stdout-eval --
w: {
    model:    "retroencabulator"
    explicit: "literal string"
}
-- expect-stdout-def --
import "mod.test/config/components:widget"

w: widget.#Widget & {
	model: "retroencabulator"
}
