[vala/0.10-parallel: 25/32] CodeWriter: Support non-constant expressions as default arguments
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.10-parallel: 25/32] CodeWriter: Support non-constant expressions as default arguments
- Date: Fri, 17 Sep 2010 23:03:05 +0000 (UTC)
commit 64527ed2c6a881211f114ec0579b2f2a59edccf4
Author: Jürg Billeter <j bitron ch>
Date: Fri Sep 10 08:47:53 2010 +0200
CodeWriter: Support non-constant expressions as default arguments
vala/valacodewriter.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vala/valacodewriter.vala b/vala/valacodewriter.vala
index cc8ad04..aa3dc12 100644
--- a/vala/valacodewriter.vala
+++ b/vala/valacodewriter.vala
@@ -900,7 +900,7 @@ public class Vala.CodeWriter : CodeVisitor {
if (param.initializer != null) {
write_string (" = ");
- write_string (param.initializer.to_string ());
+ param.initializer.accept (this);
}
i++;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]