Skip to content

Conversation

@jasmith-hs
Copy link
Contributor

MacroFunctions made in tags used in eager execution should be EagerMacroFunctions. This was done for those created from the {% macro %} (EagerMacroTag) tag, but not from EagerCallTag or EagerFromTag.

Specifically, there's a ClassCastException that can happen due to the assumption that in eager execution all MacroFunction objects are EagerMacroFunction instances. This could happen when successfully importing a macro function using a FromTag with an alias, a bug I introduced with #1117

@jasmith-hs jasmith-hs changed the title Construct EagerMacroFunction from EagerCallTag and EagerFromTag Construct EagerMacroFunction when aliasing macro function from {% from %} tag Sep 17, 2024
@jasmith-hs jasmith-hs merged commit e94fa9a into master Dec 13, 2024
5 checks passed
@jasmith-hs jasmith-hs deleted the construct-eager-macro-functions branch December 13, 2024 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants