mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
Support only integer primitive ranges and progressions in optimized for loop codegen.
Do not call getProgressionFinalElement, use new progression properties 'first' and 'last' instead.
This commit is contained in:
@@ -5,4 +5,6 @@ fun f() {
|
||||
|
||||
// 0 iterator
|
||||
// 0 getStart
|
||||
// 0 getEnd
|
||||
// 0 getEnd
|
||||
// 0 getFirst
|
||||
// 0 getLast
|
||||
@@ -5,4 +5,6 @@ fun f(a: Int, b: Int) {
|
||||
|
||||
// 0 iterator
|
||||
// 0 getStart
|
||||
// 0 getEnd
|
||||
// 0 getEnd
|
||||
// 0 getFirst
|
||||
// 0 getLast
|
||||
@@ -6,6 +6,6 @@ fun f() {
|
||||
}
|
||||
|
||||
// 0 iterator
|
||||
// 2 getStart
|
||||
// 2 getEnd
|
||||
// 2 getFirst
|
||||
// 2 getLast
|
||||
// 2 getIncrement
|
||||
@@ -4,5 +4,7 @@ fun f(r: IntRange) {
|
||||
}
|
||||
|
||||
// 0 iterator
|
||||
// 1 getStart
|
||||
// 1 getEnd
|
||||
// 0 getStart
|
||||
// 0 getEnd
|
||||
// 1 getFirst
|
||||
// 1 getLast
|
||||
Reference in New Issue
Block a user