Skip to content

Demonstrate duplicate/colliding variable name bugs in PatternMatchingInstanceof with[] - #6013

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_962358082
Aug 10, 2026
Merged

Demonstrate duplicate/colliding variable name bugs in PatternMatchingInstanceof with[]#6013
copybara-service[bot] merged 1 commit into
masterfrom
test_962358082

Conversation

@copybara-service

Copy link
Copy Markdown
Contributor

Demonstrate duplicate/colliding variable name bugs in PatternMatchingInstanceof with[]

  1. Nested instanceof checks of the same type generating the same pattern variable name and shadowing the outer variable.
  2. Compound && condition with two instanceof checks of the same type generating duplicate pattern variable names.
  3. instanceof in a variable initializer generating a pattern variable name that clashes with the variable being initialized.

…gInstanceof` with[]

1. Nested `instanceof` checks of the same type generating the same pattern variable name and shadowing the outer variable.
2. Compound `&&` condition with two `instanceof` checks of the same type generating duplicate pattern variable names.
3. `instanceof` in a variable initializer generating a pattern variable name that clashes with the variable being initialized.

PiperOrigin-RevId: 962393089
@copybara-service
copybara-service Bot merged commit 56412f4 into master Aug 10, 2026
@copybara-service
copybara-service Bot deleted the test_962358082 branch August 10, 2026 22:13
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