Skip to content

Commit 22e5254

Browse files
.
1 parent 2ef6788 commit 22e5254

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resolver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2873,7 +2873,7 @@ export class Resolver extends DiagnosticEmitter {
28732873
let type = prototype.functionTypeNode.returnType;
28742874
if (type.kind == NodeKind.NamedType && (<NamedTypeNode>type).name.identifier.text == CommonNames.this_) {
28752875
let element = this.lookupExpression(this.currentThisExpression!, ctxFlow);
2876-
if (element && element.kind == ElementKind.Class && element.is(CommonFlags.Resolved)) {
2876+
if (element && element.kind == ElementKind.Class) {
28772877
classInstance = <Class>element;
28782878
}
28792879
}

0 commit comments

Comments
 (0)