// Issue #716
//
// NOTE removing the empty import decl is more a job for
// cue/format or astutil.Sanitize.

-- a/a.cue --
package a

A: 5
-- b.cue --
package b

import (
	"mod.test/blah/a"
)

#Def: {
	y: 5
}

x: #Def
x: y: a.A
-- cue.mod/module.cue --
module: "mod.test/blah"
language: version: "v0.9.0"
-- out/trim-v3 --
== b.cue
package b

import (
)

#Def: {
	y: 5
}

x: #Def
x: _
-- diff/-out/trim-v3<==>+out/trim --
diff old new
--- old
+++ new
@@ -9,4 +9,4 @@
 }
 
 x: #Def
-x: {}
+x: _
-- out/trim-v3-noshare --
== b.cue
package b

import (
)

#Def: {
	y: 5
}

x: #Def
x: _
-- diff/-out/trim-v3-noshare<==>+out/trim --
diff old new
--- old
+++ new
@@ -9,4 +9,4 @@
 }
 
 x: #Def
-x: {}
+x: _
-- out/trim --
== b.cue
package b

import (
)

#Def: {
	y: 5
}

x: #Def
x: {}
