Skip to content

Fix truthiness implem#15339

Merged
josevalim merged 1 commit intoelixir-lang:mainfrom
gldubc:codex/fix-truthiness-implem
May 4, 2026
Merged

Fix truthiness implem#15339
josevalim merged 1 commit intoelixir-lang:mainfrom
gldubc:codex/fix-truthiness-implem

Conversation

@gldubc
Copy link
Copy Markdown
Member

@gldubc gldubc commented May 3, 2026

Fixed two error cases:

  • things like true or integer() were not recognized as :always_true
  • empty descrs were not properly handled

This refines the analysis of conditions (see regression for true or integer())

@gldubc gldubc marked this pull request as ready for review May 3, 2026 20:28
@josevalim josevalim merged commit 2fd3506 into elixir-lang:main May 4, 2026
15 checks passed
@josevalim
Copy link
Copy Markdown
Member

💚 💙 💜 💛 ❤️

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