-- in.cue --
t1: close({b: {}})
t1: _
t1: b: _
t1: _
t1: _

#X: {[=~"^Q*$"]: int}

#X: _
#X: _
#X: _
#X: _

t2: #X
t2: _
t2: _
t2: _
t2: _

#Y: {...}

t3: #Y
t3: _
t3: _
t3: _
t3: _

// t4: "string" (quoted) targets the literal field named string;
// string (unquoted) targets the any-string pattern constraint.
t4: close({"string": 1})
t4: _
t4: _ // quoted: literal field named string
t4: _ // unquoted: any-string pattern not present
-- out/compile --
--- in.cue
{
  t1: close({
    b: {}
  })
  t1: _
  t1: {
    b: _
  }
  t1: _
  t1: _
  #X: {
    [=~"^Q*$"]: int
  }
  #X: _
  #X: _
  #X: _
  #X: _
  t2: 〈0;#X〉
  t2: _
  t2: _
  t2: _
  t2: _
  #Y: {
    ...
  }
  t3: 〈0;#Y〉
  t3: _
  t3: _
  t3: _
  t3: _
  t4: close({
    string: 1
  })
  t4: _
  t4: _
  t4: _
}
