diff --git a/packages/compiler-cli/src/ngtsc/metadata/src/resolver.ts b/packages/compiler-cli/src/ngtsc/metadata/src/resolver.ts index 37875e50b2..b6539e5a19 100644 --- a/packages/compiler-cli/src/ngtsc/metadata/src/resolver.ts +++ b/packages/compiler-cli/src/ngtsc/metadata/src/resolver.ts @@ -671,7 +671,8 @@ class StaticInterpreter { function isFunctionOrMethodReference(ref: Reference): ref is Reference { - return ts.isFunctionDeclaration(ref.node) || ts.isMethodDeclaration(ref.node); + return ts.isFunctionDeclaration(ref.node) || ts.isMethodDeclaration(ref.node) || + ts.isFunctionExpression(ref.node); } function literal(value: ResolvedValue): any {