Skip to content

Commit 8467221

Browse files
committed
added missing ENew args
1 parent b642dfb commit 8467221

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

hscript/Printer.hx

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,17 @@ class Printer {
252252
expr(e);
253253
}
254254
add("]");
255-
case ENew(cl, args):
256-
add("new " + cl + "(");
255+
case ENew(cl, args, targs):
256+
add("new " + cl);
257+
if( targs != null ) {
258+
add('<');
259+
var first = true;
260+
for( t in targs ) {
261+
if( first ) first = false else add(',');
262+
addType(t);
263+
}
264+
add('>');
265+
}
257266
var first = true;
258267
for( e in args ) {
259268
if( first ) first = false else add(", ");

0 commit comments

Comments
 (0)