Files
kotlin-fork/idea/testData/quickfix/surroundWithNullCheck/unsafeCallInsideAnonymous.kt
T
Mikhail Glukhikh 81406a2bac Change .hashCode() to .bar() for some nullability fixes tests
Hash code can be no more used because in 1.3 we have nullable extension.
This fixes two wrap with safe let call tests and
one surround with null check test.
2018-09-18 11:50:34 +03:00

8 lines
132 B
Kotlin
Vendored

// "Surround with null check" "true"
// WITH_RUNTIME
fun Int.bar() = this
fun foo(arg: Int?) {
run(fun() = arg<caret>.bar())
}