Files
carbon-lang/toolchain/check/testdata/class/method
popcoder565andpopcoder565 6c1d2a86e6 Fix crashes on impl lookup for bound method types (#7940)
`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>
2026-10-12 16:11:26 +00:00
..