# Tests that field names overlapping with built-in identifiers (e.g. "html",
# "list") are not reordered to the front of the struct during evaluation.
# Issue: `cue eval` placed such fields before others, violating declaration
# order.
# https://cuelang.org/issue/349
-- in.cue --
ex: {
	"aaa":  "aaa"
	"list": "list"
	"zzz":  "zzz"
	"AAA":  "AAA"
	"html": "html"
	"HTML": "html"
	"ZZZ":  "ZZZ"
	"Html": "html"
}
-- out/compile --
--- in.cue
{
  ex: {
    aaa: "aaa"
    list: "list"
    zzz: "zzz"
    AAA: "AAA"
    html: "html"
    HTML: "html"
    ZZZ: "ZZZ"
    Html: "html"
  }
}
