Skip to content

Commit

Permalink
evaluator: Fixed patterns passed to non-type template parameters gett…
Browse files Browse the repository at this point in the history
…ing hidden
  • Loading branch information
WerWolv committed Jul 3, 2024
1 parent e54a1fd commit 374229f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/source/pl/core/ast/ast_node_type_decl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,10 @@ namespace pl::core::ast {
if (variable != nullptr) {
variable->setInitialized(false);
evaluator->setVariable(variable, value);
templatePatterns.push_back(variable);

variable->setVisibility(ptrn::Visibility::Hidden);
auto templateVariable = variable->clone();
templateVariable->setVisibility(ptrn::Visibility::Hidden);
templatePatterns.emplace_back(std::move(templateVariable));
}
}
}
Expand Down

0 comments on commit 374229f

Please sign in to comment.