typeck: resolve type vars before calling try_index_step
#41578
+49
−2
Merged