Files
carbon-lang/toolchain/check/testdata/function/call
David Blaikie e588469fd6 Handle return expr; in functions with a value return form (#7907)
`BuildReturnWithExpr` handled init, ref, error, and symbolic return
forms, but hit `CARBON_FATAL("Unexpected inst kind")` for a `ValueForm`,
so a definition such as `fn F() ->? form(val i32) { return 1; }`
crashed. Convert the returned expression to a value of the form's type
component, mirroring the existing `RefForm` handling.
2026-10-06 20:36:26 +00:00
..