Code QuizAdvanced

Intersecting Conflicting Property Types

Intersecting incompatible primitive property types produces never, making the value unusable.

Codetypescript
type WithNumberId = { id: number };
type WithStringId = { id: string };

type Entity = WithNumberId & WithStringId;

const e: Entity = { id: 123 };

What is the bug in this code?