Skip to content

Commit

Permalink
Fixed #217, propogating guards to Spread.
Browse files Browse the repository at this point in the history
  • Loading branch information
amyjko committed Oct 24, 2023
1 parent 45c801f commit 45e11ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/nodes/ListLiteral.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ export default class ListLiteral extends Expression {
this.values.forEach((val) => {
if (val instanceof Expression)
val.evaluateTypeSet(bind, original, current, context);
else if (val.list)
val.list.evaluateTypeSet(bind, original, current, context);
});
return current;
}
Expand Down

0 comments on commit 45e11ac

Please sign in to comment.