]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vala: No need to run return_type.check() twice for method
authorRico Tzschichholz <ricotz@ubuntu.com>
Fri, 15 Oct 2021 10:02:21 +0000 (12:02 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Tue, 19 Oct 2021 07:36:11 +0000 (09:36 +0200)
vala/valamethod.vala

index d12cbcc1320b646628ebef4013d25ebe6295bef3..8b53a1946d98e5167b4f69b4042723b7676feb9c 100644 (file)
@@ -832,10 +832,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;