diff options
author | Jürg Billeter <j@bitron.ch> | 2011-06-03 11:59:47 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2011-06-03 12:07:01 +0200 |
commit | 323029eff53bc24a1d292e0d4001a2e8253defcc (patch) | |
tree | 914393c85f9c1c6caa85387e7f299de62d904a67 | |
parent | 439c74b7e56811272999c8cd03eb7c72bdb3fcbb (diff) | |
download | vala-0.12.tar.gz |
Fix critical when calling generated enum to_string method0.12
-rw-r--r-- | vala/valaenumvaluetype.vala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vala/valaenumvaluetype.vala b/vala/valaenumvaluetype.vala index 8a5b7d665..c409763fe 100644 --- a/vala/valaenumvaluetype.vala +++ b/vala/valaenumvaluetype.vala @@ -1,6 +1,6 @@ /* valaenumvaluetype.vala * - * Copyright (C) 2009 Jürg Billeter + * Copyright (C) 2009-2011 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 @@ -49,6 +49,8 @@ public class Vala.EnumValueType : ValueType { to_string_method.access = SymbolAccessibility.PUBLIC; to_string_method.external = true; to_string_method.owner = type_symbol.scope; + to_string_method.this_parameter = new Parameter ("this", this); + to_string_method.scope.add (to_string_method.this_parameter.name, to_string_method.this_parameter); } return to_string_method; } |