X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/3aab0efa423fe20713c8cc02e8aabdf7fe84056b..b70cb6d8704405cbb9281f823390f561c03de70c:/src/method-aggregate.lisp diff --git a/src/method-aggregate.lisp b/src/method-aggregate.lisp index ec0a119..cec6f14 100644 --- a/src/method-aggregate.lisp +++ b/src/method-aggregate.lisp @@ -185,12 +185,8 @@ (let ((wanted (aggregating-message-method-return-type message (sod-message-combination message))) (msgtype (sod-message-type message))) - (unless (c-type-equal-p (c-type-subtype type) wanted) - (error "Method return type ~A doesn't match message ~A" - (c-type-subtype msgtype) (c-type-subtype type))) - (unless (argument-lists-compatible-p (c-function-arguments msgtype) - (c-function-arguments type)) - (error "Method arguments ~A don't match message ~A" type msgtype)))) + (check-method-return-type type wanted) + (check-method-argument-lists type msgtype))) ;;;-------------------------------------------------------------------------- ;;; Utilities.