From e3a82db7f1fa9ecf1c539377cb3086476396aa97 Mon Sep 17 00:00:00 2001 From: JohnnyMorganz Date: Fri, 28 Oct 2022 20:42:03 +0100 Subject: [PATCH] Fix lvalue bind --- src/operations/Completion.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/operations/Completion.cpp b/src/operations/Completion.cpp index 25d5c1a2..0cf8f27d 100644 --- a/src/operations/Completion.cpp +++ b/src/operations/Completion.cpp @@ -487,7 +487,7 @@ std::vector WorkspaceFolder::completion(const lsp::Completi size_t argIndex = 0; size_t snippetIndex = 1; - auto& [minCount, _] = Luau::getParameterExtents(Luau::TxnLog::empty(), ftv->argTypes, true); + auto [minCount, _] = Luau::getParameterExtents(Luau::TxnLog::empty(), ftv->argTypes, true); auto it = Luau::begin(ftv->argTypes); for (; it != Luau::end(ftv->argTypes); ++it, ++argIndex)