removeTypeAnnotations support listeater expressions

This commit is contained in:
2025-02-03 10:37:17 -06:00
parent 35b1dffc09
commit b7722a6dbb

View File

@@ -461,6 +461,10 @@ class Helpers {
UnquoteList(removeTypeAnnotations(innerExp));
case None:
None;
case ListEatingExp(exps):
ListEatingExp(exps.map(removeTypeAnnotations));
case ListRestExp(name):
ListRestExp(name);
default:
throw KissError.fromExp(exp, 'cannot remove type annotations');
};