fbdf7e33bd
PCLA-related changes led to this change in behavior. In K1 an explicit cast was needed to prevent ORA, but now in K2 this code is green without casts. ^KT-50293 Obsolete
12 lines
191 B
Kotlin
Vendored
12 lines
191 B
Kotlin
Vendored
// WITH_STDLIB
|
|
// ISSUE: KT-50293
|
|
|
|
fun main() {
|
|
val list = buildList {
|
|
add("one")
|
|
add("two")
|
|
|
|
val secondParameter = get(1)
|
|
println(secondParameter)
|
|
}
|
|
} |