Closed ovska closed 3 months ago
Resolving to the single valid constructor also generates funky code like this:
Examples.User obj = new Examples.User(
Id: state.@p_Id!,
Name: state.@p_Name!,
LastLogin: state.@p_LastLogin!,
Age: state.@p_Age!)
{
Id = state.Id!,
Name = state.Name!,
LastLogin = state.LastLogin!,
Age = state.Age!,
};
return obj;
This is due to init
properties being always required, needs to be fixed for records
Still missing for reflection path
Currently a record generates an invalid initializer:
Generated: