If function body could not be resolved, do not check overrides
Without a resolved body, this check will always return "contract is missing
overrides".
@@ -95,13 +95,14 @@ pub fn resolve(
}
// Now we can resolve the bodies
- resolve_bodies(function_bodies, file_no, ns);
-
+ if !resolve_bodies(function_bodies, file_no, ns) {
+ // only if we could resolve all the bodies
for (contract_no, _) in contracts {
check_base_args(*contract_no, ns);
missing_overrides(*contract_no, ns);
}
}
+}
/// Resolve the base contracts list and check for cycles. Returns true if no
/// issues where found.
