summaryrefslogtreecommitdiff
path: root/vala/valamethod.vala
diff options
context:
space:
mode:
Diffstat (limited to 'vala/valamethod.vala')
-rw-r--r--vala/valamethod.vala5
1 files changed, 4 insertions, 1 deletions
diff --git a/vala/valamethod.vala b/vala/valamethod.vala
index eb948fd30..e3718db62 100644
--- a/vala/valamethod.vala
+++ b/vala/valamethod.vala
@@ -211,7 +211,10 @@ public class Vala.Method : Member {
* @param source reference to source code
* @return newly created method
*/
- public Method (construct string name, construct DataType return_type, construct SourceReference source_reference = null) {
+ public Method (string name, DataType return_type, SourceReference source_reference = null) {
+ this.return_type = return_type;
+ this.source_reference = source_reference;
+ this.name = name;
}
construct {