summaryrefslogtreecommitdiff
path: root/vala/valareturnstatement.vala
diff options
context:
space:
mode:
authorJuerg Billeter <j@bitron.ch>2008-04-13 19:01:07 +0000
committerJürg Billeter <juergbi@src.gnome.org>2008-04-13 19:01:07 +0000
commit3c5158fe2fe47fb84e8b6c86e46852afa1f6291a (patch)
treefe019ee827f8d2d95ca7350a0a013fc31d6e8eb5 /vala/valareturnstatement.vala
parent2c3dc37cdbb2ccd9ec5b1a78fe104b0accbf4013 (diff)
downloadvala-3c5158fe2fe47fb84e8b6c86e46852afa1f6291a.tar.gz
fix build when using non-null types
2008-04-13 Juerg Billeter <j@bitron.ch> * */*.vala: fix build when using non-null types svn path=/trunk/; revision=1212
Diffstat (limited to 'vala/valareturnstatement.vala')
-rw-r--r--vala/valareturnstatement.vala6
1 files changed, 3 insertions, 3 deletions
diff --git a/vala/valareturnstatement.vala b/vala/valareturnstatement.vala
index 5ecd4e563..fe9614491 100644
--- a/vala/valareturnstatement.vala
+++ b/vala/valareturnstatement.vala
@@ -1,6 +1,6 @@
/* valareturnstatement.vala
*
- * Copyright (C) 2006-2007 Jürg Billeter
+ * Copyright (C) 2006-2008 Jürg Billeter
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -29,7 +29,7 @@ public class Vala.ReturnStatement : CodeNode, Statement {
/**
* The optional expression to return.
*/
- public Expression return_expression {
+ public Expression? return_expression {
get { return _return_expression; }
set {
_return_expression = value;
@@ -48,7 +48,7 @@ public class Vala.ReturnStatement : CodeNode, Statement {
* @param source_reference reference to source code
* @return newly created return statement
*/
- public ReturnStatement (Expression return_expression = null, SourceReference source_reference = null) {
+ public ReturnStatement (Expression? return_expression = null, SourceReference? source_reference = null) {
this.source_reference = source_reference;
this.return_expression = return_expression;
}