mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-15 15:58:10 +00:00
`TypeIterator` didn't handle `BoundMethodType`, so any impl lookup whose self type is a bound method crashed, for example `c.Get != 0` or `var x: i32 = c.Get;` after forgetting the call parentheses. Treat it as a concrete type, and as trivially destructible when checking `Destroy`, since bound methods are empty at runtime. These cases now produce the usual missing-impl diagnostics. Fixes #7884 Assisted-by: Claude Code with Claude Opus 5.5 Co-authored-by: popcoder565 <339285150+popcoder565@users.noreply.github.com>