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

@@ -1,3 +1,4 @@
// @target: es5
class a {
x() {
return "20";
@@ -6,9 +7,9 @@ class a {
class b extends a {
get x() {
return "20";
return () => "20";
}
set x(aValue: string) {
set x(aValue) {
}
}

View File

@@ -0,0 +1,9 @@
class Base {
foo() {
}
}
class Derived extends Base {
foo: () => { };
}