JVM: Always invoke get()/charAt() in optimized for-loop over

CharSequence.withIndex(), even if element variable is unused in
destructuring declaration.

#KT-34779 Fixed
This commit is contained in:
Mark Punzalan
2019-11-05 23:42:29 -08:00
committed by Dmitry Petrov
parent 411dc5d60e
commit f444702cf3
16 changed files with 506 additions and 4 deletions

View File

@@ -19,4 +19,4 @@ fun box(): String {
// 0 component1
// 0 component2
// 1 length
// 0 charAt
// 1 charAt