Skip to content

Commit f3ce1de

Browse files
authored
Merge branch 'WerWolv:master' into LocalMemberVariablesIssue
2 parents 14392fa + acc3768 commit f3ce1de

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/source/pl/core/ast/ast_node_union.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ namespace pl::core::ast {
2727
ON_SCOPE_EXIT {
2828
size_t size = 0;
2929
for (auto &memberPattern : memberPatterns) {
30-
size = std::max(memberPattern->getSize(), size);
30+
if (!memberPattern->isLocal())
31+
size = std::max(memberPattern->getSize(), size);
3132
}
3233
pattern->setSize(size);
3334

0 commit comments

Comments
 (0)