Describe the bug in detail:
When assigning a variable from a constant, in some cases a runtime conversion is generated, instead of simply ensuring the constant is the correct type.
Provide steps/code to reproduce the bug:
uint[] x = new int[1];
x[0] = 0;
Expected behavior:
What was the excepted result?
A single array set instruction should be generated. However, in fact, a conversion is generated first:
Describe the bug in detail: When assigning a variable from a constant, in some cases a runtime conversion is generated, instead of simply ensuring the constant is the correct type.
Provide steps/code to reproduce the bug:
Expected behavior: What was the excepted result?
A single array set instruction should be generated. However, in fact, a conversion is generated first: