[vala] Fix chain up to creation methods with variable argument lists
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] Fix chain up to creation methods with variable argument lists
- Date: Thu, 3 Sep 2009 09:29:35 +0000 (UTC)
commit cc0b348118ec964a8a7d688934d51e32d4de8d60
Author: Jürg Billeter <j bitron ch>
Date: Thu Sep 3 11:15:25 2009 +0200
Fix chain up to creation methods with variable argument lists
vala/valamethod.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vala/valamethod.vala b/vala/valamethod.vala
index 3036f2a..4680889 100644
--- a/vala/valamethod.vala
+++ b/vala/valamethod.vala
@@ -903,7 +903,7 @@ public class Vala.Method : Member {
public int get_required_arguments () {
int n = 0;
foreach (var param in parameters) {
- if (param.default_expression != null) {
+ if (param.default_expression != null || param.ellipsis) {
// optional argument
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]