mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 15:53:40 +00:00
10 lines
378 B
Kotlin
Vendored
10 lines
378 B
Kotlin
Vendored
// "Replace scope function with safe (?.) call" "false"
|
|
// ACTION: Add non-null asserted (!!) call
|
|
// ACTION: Introduce local variable
|
|
// ACTION: Replace with safe (?.) call
|
|
// ACTION: Surround with null check
|
|
// ERROR: Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type String?
|
|
// WITH_RUNTIME
|
|
fun foo(a: String?) {
|
|
a<caret>.length
|
|
} |