You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Resolve nested method-call types through typed HIR #437
enhancementA request for a new feature or improvement.help wantedThe issue requires extra attention or help from others.refactorIssues that require code refactoring without changing functionality.technical debtIssues that represent potential future improvements or problems.
AST-local Expression::get_wave_type panics for nested method calls and several other expression kinds. Type information needed after semantic analysis should come from typed HIR rather than being reconstructed from syntax and a local variable map.
Ensure nested method-call chains receive resolved expression types in typed HIR and migrate their downstream consumers away from AST-local type inference. This issue is narrower than migrating the entire backend in #407.
Acceptance criteria
Chained and nested method calls type-check when every receiver and return type is valid.
Invalid chains report the first failing member with a source span.
Backend code consumes the resolved expression type rather than calling the panicking AST helper.
Generic receiver and return types remain resolved after monomorphization.
No valid nested method call triggers nested method call type inference not supported yet.
Positive and negative tests cover fields, pointers/references where supported, generic receivers, and calls used inside larger expressions.
Verified the existing typed-HIR method path and reran generic_methods plus generic_methods_and_nested_method_receivers_execute_once. Chained receivers retain resolved pointer types, the invalid-chain fixture points at the first failing member, and the runtime fixture checks generic return values and once-only receiver evaluation. LLVM method consumers use typed expression metadata; this issue is already implemented.
enhancementA request for a new feature or improvement.help wantedThe issue requires extra attention or help from others.refactorIssues that require code refactoring without changing functionality.technical debtIssues that represent potential future improvements or problems.
Activity
LunaStev commentedon Sep 23, 2026
Verified the existing typed-HIR method path and reran
generic_methodsplusgeneric_methods_and_nested_method_receivers_execute_once. Chained receivers retain resolved pointer types, the invalid-chain fixture points at the first failing member, and the runtime fixture checks generic return values and once-only receiver evaluation. LLVM method consumers use typed expression metadata; this issue is already implemented.