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

@@ -4,8 +4,8 @@
"license": "MIT", "license": "MIT",
"tags": ["tink", "macro", "utility"], "tags": ["tink", "macro", "utility"],
"description": "The macro toolkit ;)", "description": "The macro toolkit ;)",
"version": "0.1.0-beta", "version": "0.1.1-beta",
"releasenote": "Allow getting members by name from ClassBuilder.", "releasenote": "Fixed ClassBuilder.hasConstructor",
"contributors": ["back2dos"], "contributors": ["back2dos"],
"dependencies": { "dependencies": {
"tink_core": "1.0.0-beta.4" "tink_core": "1.0.0-beta.4"

View File

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