]> 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:47:27 +0000 (09:47 +0200)
vala/valamethod.vala

index eeb3f1e44304d90e3ddaabdc2a3078ee30a44fe9..4b604b6c44b2eda0b8097e86581ce02b9d89be4e 100644 (file)
@@ -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;