Intrinsics for 'reversed': generate in-const-bound ranges as countable

#KT-21323 In Progress
This commit is contained in:
Dmitry Petrov
2017-12-11 12:20:21 +03:00
parent 1775f294f4
commit 821843e13f
9 changed files with 147 additions and 5 deletions
@@ -14,6 +14,8 @@ fun box(): String {
}
// 0 reversed
// 0 getStart
// 0 getEnd
// 0 getFirst
// 0 getLast
// 0 getStep
@@ -24,6 +24,10 @@ fun box(): String {
}
// 0 reversed
// 0 getStart
// 0 getEnd
// 0 getFirst
// 0 getLast
// 0 getStep
// 0 getStep
// 2 IF_ICMPEQ
// ^ 1 for char progression, 1 for long progression