Beef
Beef copied to clipboard
Feature Request: Support implicit protected setter for get only properties
The code below works in C#:
abstract class Parent
{
public abstract int Number { get; }
}
class Child : Parent
{
public override int Number { get; }
public Child()
{
Number = 0;
}
}
The code below does not compile in Beef:
abstract class Parent
{
public abstract int Number { get; }
}
class Child : Parent
{
public override int Number { get; }
public this()
{
Number = 0;
}
}
The Beef compiler complains that: Property has no setter