Skip to content

Abstract properties are being identified as automatic properties #13

Description

@danelkhen
[JsType(JsMode.Prototype, AutomaticPropertiesAsFields = false)]
public abstract class ValueSet
{
    //[JsProperty(NativeField = false)]
    public abstract JsNumber FieldIndicator { get; set; }

}

[JsType(JsMode.Prototype)]
public class FreeValueSet : ValueSet
{
    public FreeValueSet(JsNumber x)
    {
        X = x;
    }

    JsNumber X;

    public override JsNumber FieldIndicator
    {
        get { return X; }
        set { X = value; }
    }
}

[JsType(JsMode.Prototype)]
public class Class1
{
    public static void Main(String[] args)
    {
        ValueSet vs = new FreeValueSet(2);
        HtmlContext.console.info(vs.FieldIndicator);
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions