From 9323be6110beda90ef9d9dcb43e49b9acdc224e5 Mon Sep 17 00:00:00 2001 From: vegorov-rbx <75688451+vegorov-rbx@users.noreply.github.com> Date: Tue, 5 Mar 2024 09:04:28 -0800 Subject: [PATCH] Fix ConstraintSolver linker errors in release configuration (#1180) This fixes linker errors reported in https://github.com/luau-lang/luau/issues/1178 --- 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