[vala/staging: 4/6] vala: No need to run return_type.check() twice for method
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging: 4/6] vala: No need to run return_type.check() twice for method
- Date: Fri, 15 Oct 2021 10:23:52 +0000 (UTC)
commit 5155348daf224f1ce3fe9a9432168ad6db9210f9
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Fri Oct 15 12:02:21 2021 +0200
vala: No need to run return_type.check() twice for method
vala/valamethod.vala | 4 ----
1 file changed, 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]