You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
main() {
for (var i = 0; i < colors.length; i++) {
print(colors[i]);
}
}
dart2js generates this:
$.main = function() {
var i;
for (var i = 0; i < $.get$length$as($.get$colors()); ++i)
$.Primitives_printString($.toString$0($.$index$as($.get$colors(), i)));
};
Could it know the length of colors at compile time, and inline the number 3 ?
The text was updated successfully, but these errors were encountered:
Consider this code:
final List colors = new List(3);
main() {
for (var i = 0; i < colors.length; i++) {
print(colors[i]);
}
}
dart2js generates this:
$.main = function() {
var i;
for (var i = 0; i < $.get$length$as($.get$colors()); ++i)
$.Primitives_printString($.toString$0($.$index$as($.get$colors(), i)));
};
Could it know the length of colors at compile time, and inline the number 3 ?
The text was updated successfully, but these errors were encountered: