Skip to content

Commit

Permalink
[macro] Printer: do not break for TDAbstract without flags
Browse files Browse the repository at this point in the history
  • Loading branch information
kLabz committed Sep 8, 2023
1 parent 1e8ba1a commit 536c388
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions std/haxe/macro/Printer.hx
Original file line number Diff line number Diff line change
Expand Up @@ -390,11 +390,13 @@ class Printer {
var to = to == null ? [] : to.copy();
var isEnum = false;

for (flag in tflags) {
switch (flag) {
case AbEnum: isEnum = true;
case AbFrom(ct): from.push(ct);
case AbTo(ct): to.push(ct);
if (tflags != null) {
for (flag in tflags) {
switch (flag) {
case AbEnum: isEnum = true;
case AbFrom(ct): from.push(ct);
case AbTo(ct): to.push(ct);
}
}
}

Expand Down

0 comments on commit 536c388

Please sign in to comment.