Describe the bug
If I decorate my class MyClass<T> with the [With] attribute, it will generate methods that do not return MyClass<T>, but instead MyClass
To Reproduce
[With]
public partial class MyClass<T>
{
public T MyProperty { get; set: }
}
Generates
partial class MyClass<T>
{
public MyClass WithMyProperty(T myProperty)
{
this.MyProperty = myProperty;
return this;
}
}
Expected behavior
partial class MyClass<T>
{
public MyClass<T> WithMyProperty(T myProperty)
{
this.MyProperty = myProperty;
return this;
}
}
Describe the bug If I decorate my class
MyClass<T>
with the[With]
attribute, it will generate methods that do not returnMyClass<T>
, but insteadMyClass
To Reproduce
Generates
Expected behavior
Environment info
.NET version: 8.0 Lombok.NET version: 2.4.0