From 5622e8b057d7efd2e55ed59aa49cfe00982d6c61 Mon Sep 17 00:00:00 2001 From: Vyacheslav Egorov Date: Tue, 5 Mar 2024 15:05:33 +0200 Subject: [PATCH] Fix ConstraintSolver linker errors in release configuration --- Analysis/src/ConstraintSolver.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Analysis/src/ConstraintSolver.cpp b/Analysis/src/ConstraintSolver.cpp index 40f0f8b99..a1a6aa3b1 100644 --- a/Analysis/src/ConstraintSolver.cpp +++ b/Analysis/src/ConstraintSolver.cpp @@ -2528,4 +2528,11 @@ LUAU_NOINLINE void ConstraintSolver::throwUserCancelError() throw UserCancelError(currentModuleName); } +// Instantiate private template implementations for external callers +template bool ConstraintSolver::unify(NotNull scope, Location location, TypeId subType, TypeId superType); +template bool ConstraintSolver::unify(NotNull scope, Location location, TypePackId subType, TypePackId superType); + +template bool ConstraintSolver::unify(NotNull constraint, TypeId subTy, TypeId superTy); +template bool ConstraintSolver::unify(NotNull constraint, TypePackId subTy, TypePackId superTy); + } // namespace Luau