Commit 087fa2a3 authored by Jürg Billeter's avatar Jürg Billeter

Fix instance parameter type for numeric types

parent a76e5a2c
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment