gcc/rust/ChangeLog:
* typecheck/rust-hir-type-check-pattern.cc(ClosureParamInfer(IdentifierPattern)):
Resolve subpattern types for IdentifierPattern.
Signed-off-by: Yap Zhi Heng <yapzhhg@gmail.com>
void
ClosureParamInfer::visit (HIR::IdentifierPattern &pattern)
{
+ if (pattern.has_subpattern ())
+ {
+ ClosureParamInfer::Resolve (pattern.get_subpattern ());
+ }
+
HirId id = pattern.get_mappings ().get_hirid ();
infered = new TyTy::InferType (id, TyTy::InferType::InferTypeKind::GENERAL,
TyTy::InferType::TypeHint::Default (),