From c4946478dcf479f03ce9708b9f5b385c4c88f2d5 Mon Sep 17 00:00:00 2001 From: "Marcus S. Abildskov" <8391194+marcus-sa@users.noreply.github.com> Date: Wed, 9 Aug 2023 16:31:15 +0200 Subject: [PATCH] fix(type-compiler): Node InferType did not pass test 'isEntityName' Fixes https://github.com/deepkit/deepkit-framework/issues/455 Author https://discord.com/channels/759513055117180999/956485210676002816/1138433915221196912 Signed-off-by: Marcus S. Abildskov <8391194+marcus-sa@users.noreply.github.com> --- packages/type-compiler/src/lib/compiler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/type-compiler/src/lib/compiler.ts b/packages/type-compiler/src/lib/compiler.ts index 68e0c3394..217dbd710 100644 --- a/packages/type-compiler/src/lib/compiler.ts +++ b/packages/type-compiler/src/lib/compiler.ts @@ -2308,8 +2308,8 @@ export class ReflectionTransformer implements CustomTransformer { return node; }; - const updatedParameterType = visitEachChild(parameter.type, searchArgument, this.context); if (found && isIdentifier(parameter.name)) { + const updatedParameterType = visitEachChild(parameter.type, searchArgument, this.context); foundUsers.push({ type: updatedParameterType, parameterName: parameter.name }); } }