[vala/0.10-parallel: 39/46] CodeWriter: Support non-constant expressions as default arguments



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]