Fixed ClassBuilder.hasConstructor

This commit is contained in:
back2dos
2013-10-24 14:31:02 +02:00
parent a57487ab72
commit 7a2b7db830
2 changed files with 3 additions and 3 deletions

View File

@@ -82,7 +82,7 @@ class ClassBuilder {
}
public function hasConstructor():Bool
return this.constructor == null;
return this.constructor != null;
public function export(?verbose):Array<Field> {
var ret = (constructor == null || target.isInterface) ? [] : [constructor.toHaxe()];