Skip to content

Conversation

@zharinov
Copy link
Member

@zharinov zharinov commented Jan 6, 2026

Summary

  • Change panic header from TYPE MISMATCH: ... to BUG: Type and value do not match
  • Change error messages from expected X, found Y to type: X, value: Y
  • Rename variables expected_typedeclared_type, expecteddeclared

Why

The previous wording implied the type was correct and the value was wrong. Since this is an internal consistency check, neither side is "more correct" - if they don't match, it's a bug. The new wording is neutral and doesn't assign blame.

@zharinov zharinov enabled auto-merge (squash) January 6, 2026 19:55
@zharinov zharinov merged commit ea82f83 into master Jan 6, 2026
4 checks passed
@zharinov zharinov deleted the refactor/verify-wording branch January 6, 2026 19:56
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.

2 participants