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

import "mod.test/pkg:bar"

bar
zz: 3
-- pkg/bar.cue --
package bar

import "mod.test/pkg:baz"

baz
yy: 2
-- pkg/baz.cue --
package baz

xx: 1
-- out/eval/stats --
Leaks:  1
Freed:  6
Reused: 3
Allocs: 4
Retain: 2

Unifications: 7
Conjuncts:    13
Disjuncts:    8
-- out/evalalpha --
(struct){
  zz: (int){ 3 }
  yy: (int){ 2 }
  xx: (int){ 1 }
}
-- diff/-out/evalalpha<==>+out/eval --
diff old new
--- old
+++ new
@@ -1,5 +1,5 @@
 (struct){
-  xx: (int){ 1 }
-  yy: (int){ 2 }
   zz: (int){ 3 }
+  yy: (int){ 2 }
+  xx: (int){ 1 }
 }
-- diff/todo/p3 --
Reordering
-- out/eval --
(struct){
  xx: (int){ 1 }
  yy: (int){ 2 }
  zz: (int){ 3 }
}
-- out/compile --
--- foo.cue
{
  〈import;"mod.test/pkg:bar"〉
  zz: 3
}
