Find why assigning to this property is rejected.
interface Point { readonly x: number; readonly y: number; } const p: Point = { x: 1, y: 2 }; p.x = 5;
What is the bug in this code?