Skip to content

Commit 72f7253

Browse files
committed
pattern: Don't treat everything as local during instantiations
1 parent 2eee339 commit 72f7253

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/include/pl/patterns/pattern.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ namespace pl::ptrn {
367367
}
368368

369369
[[nodiscard]] bool isLocal() const {
370-
return this->m_section != MainSectionId;
370+
return this->m_section != MainSectionId && this->m_section != InstantiationSectionId;
371371
}
372372

373373
[[nodiscard]] bool isPatternLocal() const {

0 commit comments

Comments
 (0)