[vala] Fix instance parameter type for numeric types
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Subject: [vala] Fix instance parameter type for numeric types
- Date: Tue, 5 May 2009 17:34:01 -0400 (EDT)
commit 087fa2a341be066e49dae9aad4e8941362ba040b
Author: Jürg Billeter <j bitron ch>
Date: Tue May 5 23:10:59 2009 +0200
Fix instance parameter type for numeric types
---
vala/valastruct.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/vala/valastruct.vala b/vala/valastruct.vala
index cc991eb..484a71f 100644
--- a/vala/valastruct.vala
+++ b/vala/valastruct.vala
@@ -169,7 +169,7 @@ public class Vala.Struct : TypeSymbol {
return_if_fail (m != null);
if (m.binding == MemberBinding.INSTANCE || m is CreationMethod) {
- m.this_parameter = new FormalParameter ("this", new StructValueType (this));
+ m.this_parameter = new FormalParameter ("this", SemanticAnalyzer.get_data_type_for_symbol (this));
m.scope.add (m.this_parameter.name, m.this_parameter);
}
if (!(m.return_type is VoidType) && m.get_postconditions ().size > 0) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]