Skip to content

Conversation

@AHGIJMKLKKZNPJKQR
Copy link
Contributor

I noticed that after upgrading to the current newest version (375391c) I still see a lot of the following log

Could not expand alias: {:mod, [], MyModule}

The should be resolved after #343, but there is a small typo in one of the heads of expand_alias(ast_node, reducer).
I've hopefully fixed the issue for good by pattern matching against the AST representation of a variable in the appropriate head clause and adding tests for the log.

I've specifically avoided against matching patterns like %my_macro(){}, since they may actually contain a reference to a struct.

@AHGIJMKLKKZNPJKQR AHGIJMKLKKZNPJKQR changed the title fix(engine): Correctly match any-struct references fix(engine): correctly match any-struct references Feb 1, 2026
Copy link
Collaborator

@doorgan doorgan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! 💜

@doorgan doorgan merged commit 6a92581 into elixir-lang:main Feb 2, 2026
37 of 38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants