-- in.cue --
// debugCheck: compare debug-printer output via @test(debugCheck, ...) attributes.

// ── scalar value ─────────────────────────

debugCheckScalar: 42

// ── struct value ─────────────────────────

debugCheckStruct: {
	a: 1
	b: 2
}

// ── computed struct ───────────────────────

debugCheckComputed: {
	x: 10
	y: x * 2
}

// ── version override: v3 debugCheck takes precedence ──
// Both default and v3 have the same expected output here,
// verifying that versioned attrs are accepted and applied correctly.

debugCheckVersioned: {
	z: 99
}
-- out/compile --
--- in.cue
{
  debugCheckScalar: 42
  debugCheckStruct: {
    a: 1
    b: 2
  }
  debugCheckComputed: {
    x: 10
    y: (〈0;x〉 * 2)
  }
  debugCheckVersioned: {
    z: 99
  }
}
