blob: 4a459a0736bf854e784f6a640e9e48c58616a961 [file] [log] [blame]
// "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
}