Skip to content

Commit

Permalink
check for t.params == null in TDClass case of haxe.macro.Printer (closes
Browse files Browse the repository at this point in the history
  • Loading branch information
Simn committed Jul 19, 2014
1 parent abdc39d commit 4b572fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/haxe/macro/Printer.hx
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ class Printer {
}].join("\n")
+ "\n}";
case TDClass(superClass, interfaces, isInterface):
(isInterface ? "interface " : "class ") + t.name + (t.params.length > 0 ? "<" + t.params.map(printTypeParamDecl).join(", ") + ">" : "")
(isInterface ? "interface " : "class ") + t.name + (t.params != null && t.params.length > 0 ? "<" + t.params.map(printTypeParamDecl).join(", ") + ">" : "")
+ (superClass != null ? " extends " + printTypePath(superClass) : "")
+ (interfaces != null ? (isInterface ? [for (tp in interfaces) " extends " + printTypePath(tp)] : [for (tp in interfaces) " implements " + printTypePath(tp)]).join("") : "")
+ " {\n"
Expand Down

0 comments on commit 4b572fb

Please sign in to comment.