Code QuizAdvanced

Readonly blocks property assignment

Readonly<T> prevents reassigning any property after creation.

Codetypescript
interface Point {
  x: number;
  y: number;
}

const p: Readonly<Point> = { x: 1, y: 2 };
p.x = 5; // Error

What is the bug on the last line?