Beef icon indicating copy to clipboard operation
Beef copied to clipboard

Feature Request: Support implicit protected setter for get only properties

Open jayrulez opened this issue 9 months ago • 1 comments

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

jayrulez avatar May 24 '24 02:05 jayrulez