Vogen
Vogen copied to clipboard
using static constructor -> VOG008
Describe the bug
static constructor raise compile error
VOG008: Cannot have user defined constructors, please use the From method for creation.
Steps to reproduce
[ValueObject<int>]
public readonly partial struct Item
{
static Item()
{
}
}
VOG008: Cannot have user defined constructors, please use the From method for creation.
Expected behaviour
compile success without error
Hi, thanks for the feedback. Can I ask what functionality you need in the static construct (maybe Vogen is missing something useful that could be baked in?)