Closed Joy-less closed 6 months ago
Thanks for the sample code.
Since 1.20.0, I was trying to detect the default value from the source code, but it didn't take into account the case of using the static method you presented.
We decided to revert this feature. I believe the compile error has been eliminated in 1.20.5.
The following code works in MemoryPack 1.10.0:
However, it fails in 1.20.0 - 1.20.4 with the following errors:
The first error can be removed by making
LastNumber
public, and the second error can be removed by enabling global usings.The errors only occur when inheriting from a class (abstract or not).