Iteration over MutableList is not converted properly
Closed this issue · 1 comments
eggnstone commented
error: The method 'hasNext' isn't defined for the type 'Iterator'. (undefined_method at [untitled6] lib\tools.dt.g.dart:65)
Kotlin:
private fun charsToDisplayString1(chars: List<C>): String
{
var result = ""
for (c in chars)
result += toDisplayString1(c)
return result
}
Dart:
@nonVirtual
String _$charsToDisplayString1(List<C> chars) {
String result = "";
{
final Iterator<C> tmp0_iterator = chars.iterator;
while (tmp0_iterator.hasNext()) {
final C c = tmp0_iterator.next();
result += this._$toDisplayString1$1c0e0cca663d1ff0(c);
}
}
return result;
}
wilkomanger commented
Thanks, will look into it 👍