[vala] Require index setters to return void
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] Require index setters to return void
- Date: Sun, 11 Jul 2010 13:23:27 +0000 (UTC)
commit aea80d5914ce9a09effec659998f03b0aa6993f6
Author: Jürg Billeter <j bitron ch>
Date: Sat Jul 10 18:31:42 2010 +0200
Require index setters to return void
vala/valaelementaccess.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/vala/valaelementaccess.vala b/vala/valaelementaccess.vala
index 08fdeb3..3622a1d 100644
--- a/vala/valaelementaccess.vala
+++ b/vala/valaelementaccess.vala
@@ -1,6 +1,6 @@
/* valaelementaccess.vala
*
- * Copyright (C) 2006-2009 Jürg Billeter
+ * Copyright (C) 2006-2010 Jürg Billeter
* Copyright (C) 2006-2008 Raffaele Sandrini
*
* This library is free software; you can redistribute it and/or
@@ -195,7 +195,7 @@ public class Vala.ElementAccess : Expression {
if (lvalue) {
var set_method = container.value_type.get_member ("set") as Method;
var assignment = parent_node as Assignment;
- if (set_method != null && assignment != null) {
+ if (set_method != null && set_method.return_type is VoidType && assignment != null) {
return !error;
}
} else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]