diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2021-10-15 12:02:21 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2021-10-15 12:22:54 +0200 |
commit | 5155348daf224f1ce3fe9a9432168ad6db9210f9 (patch) | |
tree | 5f454ba8a7a3d065612679eac7e1a6fa16295a28 /vala/valamethod.vala | |
parent | 5ffd65e03ad10cc8cf6481d2174e877ce3e9b6ac (diff) | |
download | vala-5155348daf224f1ce3fe9a9432168ad6db9210f9.tar.gz |
vala: No need to run return_type.check() twice for method
Diffstat (limited to 'vala/valamethod.vala')
-rw-r--r-- | vala/valamethod.vala | 4 |
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; |