From b78b3b9bcbeb7b0bf346425bb47dc8f328cdfea6 Mon Sep 17 00:00:00 2001 From: JohnnyMorganz Date: Sun, 3 Jul 2022 14:26:19 +0100 Subject: [PATCH] Fix missing map addition --- Analysis/src/TypeInfer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Analysis/src/TypeInfer.cpp b/Analysis/src/TypeInfer.cpp index b59d69a2..1d6b0403 100644 --- a/Analysis/src/TypeInfer.cpp +++ b/Analysis/src/TypeInfer.cpp @@ -5085,7 +5085,7 @@ TypeId TypeChecker::resolveType(const ScopePtr& scope, const AstType& annotation // If the generic parameters and the type arguments are the same, we are about to // perform an identity substitution, which we can just short-circuit. if (sameTys && sameTps) - return tf->type; + return currentModule->astResolvedTypes[&annotation] = tf->type; return currentModule->astResolvedTypes[&annotation] = instantiateTypeFun(scope, *tf, typeParams, typePackParams, annotation.location); }