From: Rico Tzschichholz Date: Fri, 15 Oct 2021 10:02:21 +0000 (+0200) Subject: vala: No need to run return_type.check() twice for method X-Git-Tag: 0.48.20~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33925e6a66cd256dc1f13c2699458f1a532a77ef;p=thirdparty%2Fvala.git vala: No need to run return_type.check() twice for method --- diff --git a/vala/valamethod.vala b/vala/valamethod.vala index eeb3f1e44..4b604b6c4 100644 --- a/vala/valamethod.vala +++ b/vala/valamethod.vala @@ -825,10 +825,6 @@ public class Vala.Method : Subroutine, Callable { source_reference.file.context.module_init_method = this; } - if (return_type != null) { - return_type.check (context); - } - if (parameters.size == 1 && parameters[0].ellipsis && body != null && binding != MemberBinding.INSTANCE) { // accept just `...' for external methods and instance methods error = true;