Primary constructor parameters are not automatically properties

A primary constructor parameter stays a parameter. Declare a property or field when the value should be an explicit member of the type.

August 24, 2026 · 2 min · Lukas Walter