Files
kotlin/compiler/testData/codegen/bytecodeText/notNullAssertions/arrayListGet.kt
Mikhail Zarechenskiy 5c5635ce20 Fix codegen & bytecode tests after unifying exceptions in JVM backend
See KT-22275 for details
2020-01-20 16:36:03 +03:00

15 lines
259 B
Kotlin
Vendored

import java.util.ArrayList
fun foo(): Any {
val a = ArrayList<String>()
return a.get(0)
}
fun bar(a: ArrayList<String>) {
}
// 0 checkExpressionValueIsNotNull
// 1 checkNotNullExpressionValue
// 0 checkParameterIsNotNull
// 1 checkNotNullParameter