Fix for issue #6154 - overriding methods with properties in the derived class (#24343)

* Fix to issue 6154 - Overriding a method with a property in the derived class should not cause a compiler error

* new baselines

* fixed deleted baselines
This commit is contained in:
Elizabeth Dinella
2018-05-24 14:12:13 -07:00
committed by GitHub
parent 9b9ec6309e
commit 13734e7d68
12 changed files with 101 additions and 93 deletions

View File

@@ -24489,7 +24489,7 @@ namespace ts {
continue;
}
if (isPrototypeProperty(base) && isPrototypeProperty(derived) || base.flags & SymbolFlags.PropertyOrAccessor && derived.flags & SymbolFlags.PropertyOrAccessor) {
if (isPrototypeProperty(base) || base.flags & SymbolFlags.PropertyOrAccessor && derived.flags & SymbolFlags.PropertyOrAccessor) {
// method is overridden with method or property/accessor is overridden with property/accessor - correct case
continue;
}