Skip to content

Commit

Permalink
Generics: Drop context on References without Args
Browse files Browse the repository at this point in the history
  • Loading branch information
WoH committed Sep 5, 2019
1 parent c4edc4a commit 4fc9b9c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/metadataGeneration/typeResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ export class TypeResolver {
this.context = { [typeParameter.name.text]: typeReference.typeArguments[index], ...this.context };
}
}
} else {
this.context = {};
}

referenceType = this.getReferenceType(typeReference.typeName as ts.EntityName, this.extractEnum, typeReference.typeArguments);
Expand Down

0 comments on commit 4fc9b9c

Please sign in to comment.