Skip to content

Fix: Align variable redeclaration warnings with system Perl#310

Closed
fglock wants to merge 1 commit into
masterfrom
fix/our-variable-redeclared-warning
Closed

Fix: Align variable redeclaration warnings with system Perl#310
fglock wants to merge 1 commit into
masterfrom
fix/our-variable-redeclared-warning

Conversation

@fglock
Copy link
Copy Markdown
Owner

@fglock fglock commented Mar 13, 2026

Summary

  • our variables now show "our" variable $x redeclared instead of "our" variable $x masks earlier declaration in same ctx.symbolTable
  • my variables now show "my" variable $x masks earlier declaration in same scope (fixed typo from ctx.symbolTable)
  • Removed Warning: prefix to match system Perl output format

Before

Warning: "our" variable @isa masks earlier declaration in same ctx.symbolTable at unit/mro_mixed.t line 174

After

"our" variable @isa redeclared at unit/mro_mixed.t line 174

Test Plan

  • All 163 unit tests pass
  • Verified output matches system Perl for both our and my redeclarations

Generated with Devin

- `our` variables now show "redeclared" instead of "masks earlier declaration"
- `my` variables now show "masks earlier declaration in same scope"
- Removed "Warning:" prefix to match system Perl format
- Fixed typo "ctx.symbolTable" to "scope" in warning message

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <noreply@cognition.ai>
@fglock fglock closed this Mar 13, 2026
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.

1 participant