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 2ef6788 commit 22e5254Copy full SHA for 22e5254
src/resolver.ts
@@ -2873,7 +2873,7 @@ export class Resolver extends DiagnosticEmitter {
2873
let type = prototype.functionTypeNode.returnType;
2874
if (type.kind == NodeKind.NamedType && (<NamedTypeNode>type).name.identifier.text == CommonNames.this_) {
2875
let element = this.lookupExpression(this.currentThisExpression!, ctxFlow);
2876
- if (element && element.kind == ElementKind.Class && element.is(CommonFlags.Resolved)) {
+ if (element && element.kind == ElementKind.Class) {
2877
classInstance = <Class>element;
2878
}
2879
0 commit comments