// Copy into a separate .ts test file if you want to see the expected compiler error.
// This is intentionally invalid and is excluded from tsconfig.json.
const result: import('./parser').ParseResult<import('./parser').Registration> = {ok:false,error:'invalid'};
console.log(result.data.name); // Expected: data does not exist on the failure branch.
