diff --git a/src/resolver.rs b/src/resolver.rs
index 8bff238..7f3fe67 100644
--- a/src/resolver.rs
+++ b/src/resolver.rs
@@ -232,10 +232,9 @@ where
     'b: 'a,
 {
     rs.define_this();
-    methods
-        .iter()
-        .map(|method| rs.with_scope(|rs| resolve_function(rs, &method.params, &method.body)))
-        .collect()
+    methods.iter().try_for_each(|method| {
+        rs.with_scope(|rs| resolve_function(rs, &method.params, &method.body))
+    })
 }
 
 /// Helper trait used to visit the various AST nodes with the resolver.