mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
14 lines
505 B
Kotlin
14 lines
505 B
Kotlin
// "Replace scope function with safe (?.) call" "false"
|
|
// WITH_STDLIB
|
|
// ACTION: Add non-null asserted (b!!) call
|
|
// ACTION: Enable option 'Implicit receivers and parameters' for 'Lambdas' inlay hints
|
|
// 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
|
|
}
|
|
} |