mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
Similarly to previous commit, this method was unused since its introduction before 1.0, so we're changing its semantics to throw NPE and starting to use it with API version >= 1.4. #KT-22275 In Progress
16 lines
292 B
Kotlin
Vendored
16 lines
292 B
Kotlin
Vendored
// IGNORE_BACKEND: JVM_IR
|
|
// Missing IMPLICIT_NOTNULL casts
|
|
import java.util.ArrayList
|
|
|
|
fun foo(): Any {
|
|
val a = ArrayList<String>()
|
|
return a.get(0)
|
|
}
|
|
|
|
fun bar(a: ArrayList<String>) {
|
|
}
|
|
|
|
// 1 checkExpressionValueIsNotNull
|
|
// 0 checkNotNullExpressionValue
|
|
// 1 checkParameterIsNotNull
|