Field names should not conflict with primary constructor parameters.
public class TestClass(int id) { private readonly int id; }