[vala/0.10-parallel: 39/46] 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: 39/46] CodeWriter: Support non-constant expressions as default arguments
- Date: Fri, 10 Sep 2010 16:17:10 +0000 (UTC)
commit 87f207752bcc307e9cacade281d33871eec1a5b6
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 e869155..4763f44 100644
--- a/vala/valacodewriter.vala
+++ b/vala/valacodewriter.vala
@@ -896,7 +896,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]