DerivcoIpswich / dsharp

A fork of the Script# project.
http://www.derivco.co.uk
Other
20 stars 13 forks source link

Inheritance with default properties fails #251

Closed isc30 closed 4 years ago

isc30 commented 4 years ago
class X : Y {
    public string V { get; set; }
}

class Y {
    public string V { get; set; }
}

this will generate ss.defineProperty(this, 'V', null); in both constructors, failing when it was already defined.

Possible solution: If the property already exists, just set the value.