You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This worked fine in v1.10, but v1.20.2 throws the following error: "CS0664: Literal of type double cannot be implicitly converted to type 'decimal'; use an 'M' suffix to create a literal of this type." It works if I remove the default parameter value or change myValue to a double.
[MemoryPackable]
public partial record TestClass {
public decimal MyValue { get; set; }
public TestClass(decimal myValue = 0.00m) {
MyValue = myValue;
}
}
The text was updated successfully, but these errors were encountered:
This worked fine in v1.10, but v1.20.2 throws the following error: "CS0664: Literal of type double cannot be implicitly converted to type 'decimal'; use an 'M' suffix to create a literal of this type." It works if I remove the default parameter value or change myValue to a double.
The text was updated successfully, but these errors were encountered: