From a2f67c40928447334bcbc0f00ed083ed3fc6ff94 Mon Sep 17 00:00:00 2001 From: ApsarasX Date: Sun, 12 Jun 2022 15:10:17 +0800 Subject: [PATCH] Fix variable name typo in `resolveClass` --- src/resolver.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/resolver.ts b/src/resolver.ts index db485a0973..ddb5f8b272 100644 --- a/src/resolver.ts +++ b/src/resolver.ts @@ -2896,12 +2896,12 @@ export class Resolver extends DiagnosticEmitter { if (instance) return instance; // Otherwise create - var nameInclTypeParamters = prototype.name; - if (instanceKey.length) nameInclTypeParamters += "<" + instanceKey + ">"; + var nameInclTypeParameters = prototype.name; + if (instanceKey.length) nameInclTypeParameters += "<" + instanceKey + ">"; if (prototype.kind == ElementKind.INTERFACE_PROTOTYPE) { - instance = new Interface(nameInclTypeParamters, prototype, typeArguments); + instance = new Interface(nameInclTypeParameters, prototype, typeArguments); } else { - instance = new Class(nameInclTypeParamters, prototype, typeArguments); + instance = new Class(nameInclTypeParameters, prototype, typeArguments); } prototype.setResolvedInstance(instanceKey, instance); var pendingClasses = this.resolveClassPending;