Do not lose constructor metadata.

This commit is contained in:
back2dos
2015-05-18 14:48:35 +02:00
parent 6b8aefa7ca
commit 78e9087ba2
2 changed files with 4 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ class ClassBuilder {
macros.set(field.name, field)
else if (field.name == 'new') {
var m:Member = field;
this.constructor = new Constructor(this, m.getFunction().sure(), m.isPublic, m.pos);
this.constructor = new Constructor(this, m.getFunction().sure(), m.isPublic, m.pos, m.meta);
}
else
addMember(field);