Increment expression of for
loops don't invalid the type of variables typed as literal number values
#50176
Labels
Duplicate
An existing issue was already created
Bug Report
π Search Terms
increment decrement for loop variable mutate const literal number invalidate invalidation stale
π Version & Regression Information
This is the behavior in every version I tried
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
No type error
π Expected behavior
Type error, since this is obviously unsound.
The text was updated successfully, but these errors were encountered: