From: Jürg Billeter Date: Tue, 5 May 2009 21:10:59 +0000 (+0200) Subject: Fix instance parameter type for numeric types X-Git-Tag: 0.7.2~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=087fa2a341be066e49dae9aad4e8941362ba040b;p=thirdparty%2Fvala.git Fix instance parameter type for numeric types --- diff --git a/vala/valastruct.vala b/vala/valastruct.vala index cc991eb35..484a71fb1 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) {