Skip to content

Conversation

@sabiwara
Copy link
Contributor

@sabiwara sabiwara commented Oct 28, 2025

Addresses this comment: #14837 (comment)

To be backported.

I couldn't manage to write a failing test here for some reason.
Confirmed the bug & fix in a separate project but it doesn't work when added to a test fixture module:

  def inspect_label(slug) do
    IO.inspect(slug, label: "# Slug")
  end

Copy link
Member

@josevalim josevalim left a comment

Choose a reason for hiding this comment

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

Great fix! I was thinking the bug was in the typespec signature, so I could not find it. And yes, please backport!

@sabiwara sabiwara merged commit bd3b2f6 into elixir-lang:main Oct 28, 2025
13 checks passed
@sabiwara sabiwara deleted the dialyzer-inspect-label branch October 28, 2025 07:06
@sabiwara
Copy link
Contributor Author

Backported ✅

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