]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Fix instance parameter type for numeric types
authorJürg Billeter <j@bitron.ch>
Tue, 5 May 2009 21:10:59 +0000 (23:10 +0200)
committerJürg Billeter <j@bitron.ch>
Tue, 5 May 2009 21:24:51 +0000 (23:24 +0200)
vala/valastruct.vala

index cc991eb35910455a8896dca377d20dd20ade2482..484a71fb1e392a8a43382a1e2fe18bf3885a84a3 100644 (file)
@@ -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) {