e1180adfbd
Right now, during the process of inlining, the compiler erases types. Because of that, we can end up with some random type (for example, `Any`) where the concrete type was expected (for example, `Int`). Compiler must insert a cast in the required places. #KT-66017 Fixed
11 lines
151 B
Kotlin
Vendored
11 lines
151 B
Kotlin
Vendored
// WITH_STDLIB
|
|
|
|
fun box(): String {
|
|
listOf(1).forEach { size ->
|
|
repeat(size) {
|
|
return "OK"
|
|
}
|
|
}
|
|
return "Fail"
|
|
}
|