exec cue eval ./pkg:foo

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

import "mod.test/pkg:bar"

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

import "mod.test/pkg:baz"

foo: {
	baz
	y: 2
}
foo
-- pkg/baz.cue --
package baz

x: 1
-- out/eval/stats --
Leaks:  2
Freed:  9
Reused: 6
Allocs: 5
Retain: 4

Unifications: 11
Conjuncts:    25
Disjuncts:    13
-- out/evalalpha --
(struct){
  z: (int){ 3 }
  foo: (struct){
    y: (int){ 2 }
    x: (int){ 1 }
  }
  y: (int){ 2 }
  x: (int){ 1 }
}
-- diff/-out/evalalpha<==>+out/eval --
diff old new
--- old
+++ new
@@ -1,9 +1,9 @@
 (struct){
+  z: (int){ 3 }
   foo: (struct){
-    x: (int){ 1 }
     y: (int){ 2 }
+    x: (int){ 1 }
   }
-  x: (int){ 1 }
   y: (int){ 2 }
-  z: (int){ 3 }
+  x: (int){ 1 }
 }
-- diff/todo/p3 --
Reordering
-- out/eval --
(struct){
  foo: (struct){
    x: (int){ 1 }
    y: (int){ 2 }
  }
  x: (int){ 1 }
  y: (int){ 2 }
  z: (int){ 3 }
}
-- out/compile --
--- in.cue
{
  〈import;"mod.test/pkg:bar"〉
  z: 3
}
