Microsoft MakeCode

A bug here when I tried to test the “Index” loop block in Arcade game

I think I found a bug here when I tried to test the “Index” loop block in Arcade game.

I made the following test, and assumed that the value of variable form the index would passed into loop, which this was the logic behind.

However, the test failed, the result is the same as repeat loop for number of times. Then I tried to look at the Java view and Paython view for better understanding of the logic, and found the variable form “index” did not passed into both Java and Python view.

Another surprise was that when I went back to the block view, the “index” loop type changed into “repeat” for a number of times.

Please see the enclosed picture for detail;
图片

The code is also attached here: https://makecode.com/_0YV8RKcuVhPU

Thanks

Jack