blob: 8d4084f314b3aa68424750ea12a5327e0f81a83a [file]
// "Replace scope function with safe (?.) call" "false"
// WITH_RUNTIME
// 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?
fun foo(a: String?, b: String?) {
a.apply { ->
b<caret>.length
}
}