Skip to content

checker: detect recursive .str() method calls#27926

Open
medvednikov wants to merge 1 commit into
masterfrom
fix-recursive-str-sumtype
Open

checker: detect recursive .str() method calls#27926
medvednikov wants to merge 1 commit into
masterfrom
fix-recursive-str-sumtype

Conversation

@medvednikov

Copy link
Copy Markdown
Member

Summary

  • Detect infinite recursive .str() method calls when .str() is called explicitly (e.g. n.str()) on the same receiver, not just through string interpolation
  • Previously, only string interpolation ('${n}') inside a .str() method was caught; explicit n.str() calls caused a segfault at runtime instead of a compile error
  • Add test case for sum type with recursive .str() in a match else branch

Closes #27923

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

segfault when calling custom .str() on a sum type

1 participant