summaryrefslogtreecommitdiff
path: root/vala
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2021-10-15 12:02:21 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2021-10-15 12:22:54 +0200
commit5155348daf224f1ce3fe9a9432168ad6db9210f9 (patch)
tree5f454ba8a7a3d065612679eac7e1a6fa16295a28 /vala
parent5ffd65e03ad10cc8cf6481d2174e877ce3e9b6ac (diff)
downloadvala-5155348daf224f1ce3fe9a9432168ad6db9210f9.tar.gz
vala: No need to run return_type.check() twice for method
Diffstat (limited to 'vala')
-rw-r--r--vala/valamethod.vala4
1 files changed, 0 insertions, 4 deletions
diff --git a/vala/valamethod.vala b/vala/valamethod.vala
index f03df3a4c..9769efff9 100644
--- a/vala/valamethod.vala
+++ b/vala/valamethod.vala
@@ -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;