diff --git a/src/compiler/binder.ts b/src/compiler/binder.ts index 27ec079f614ab..0233755172b62 100644 --- a/src/compiler/binder.ts +++ b/src/compiler/binder.ts @@ -3491,8 +3491,14 @@ function createBinder(): (file: SourceFile, options: CompilerOptions) => void { let excludes = SymbolFlags.None; // Method-like if (isFunctionLikeDeclaration(getAssignedExpandoInitializer(declaration)!)) { - includes = SymbolFlags.Method; - excludes = SymbolFlags.MethodExcludes; + if (isPrototypeProperty) { + includes = SymbolFlags.Method; + excludes = SymbolFlags.MethodExcludes; + } + else { + includes = SymbolFlags.Method | SymbolFlags.Property; + excludes = SymbolFlags.PropertyExcludes; + } } // Maybe accessor-like else if (isCallExpression(declaration) && isBindableObjectDefinePropertyCall(declaration)) {