Commit 885d081
Fix BotFilter to restore types when base exits bot-only state
When a BotFilter's base_vtx transitions from bot-only to having
non-bot types, previously suppressed variable types were not restored.
This caused variables assigned inside begin/rescue blocks to lose
their types when the rescue clause contained raise (bot).
The fix adds type restoration in on_type_added when the base_vtx
is no longer bot-only.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent b9c3cd3 commit 885d081
2 files changed
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
117 | 120 | | |
118 | 121 | | |
119 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
0 commit comments