We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07a8f31 commit c73efe2Copy full SHA for c73efe2
src/compiler/binder.ts
@@ -1989,9 +1989,9 @@ namespace ts {
1989
// Bind this property to the containing class
1990
const saveContainer = container;
1991
container = container.parent;
1992
- // AND it can be overwritten by subsequent method declarations
1993
const symbol = bindPropertyOrMethodOrAccessor(node, SymbolFlags.Property, SymbolFlags.None);
1994
if (symbol) {
+ // constructor-declared symbols can be overwritten by subsequent method declarations
1995
(symbol as Symbol).isReplaceableByMethod = true;
1996
}
1997
container = saveContainer;
0 commit comments