diff --git a/packages/adl/compiler/checker.ts b/packages/adl/compiler/checker.ts index c229762ea..12a36ba19 100644 --- a/packages/adl/compiler/checker.ts +++ b/packages/adl/compiler/checker.ts @@ -538,8 +538,9 @@ export function createChecker(program: Program) { }; if ( - instantiatingThisTemplate && - templateInstantiation.every((t) => t.kind !== "TemplateParameter") + (instantiatingThisTemplate && + templateInstantiation.every((t) => t.kind !== "TemplateParameter")) || + node.templateParameters.length === 0 ) { createType(type); } @@ -605,9 +606,6 @@ export function createChecker(program: Program) { return type; } - const links = getSymbolLinks(node.symbol!); - links.type = assignmentType; - return assignmentType; }