Skip to content

Commit

Permalink
Fix lvalue bind
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnnyMorganz committed Oct 28, 2022
1 parent 787e47f commit e3a82db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/operations/Completion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ std::vector<lsp::CompletionItem> 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)
Expand Down

0 comments on commit e3a82db

Please sign in to comment.