mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
17 lines
611 B
Kotlin
17 lines
611 B
Kotlin
// "Replace scope function with safe (?.) call" "false"
|
|
// WITH_STDLIB
|
|
// ACTION: Add 'return@let'
|
|
// ACTION: Add non-null asserted (length!!) call
|
|
// ACTION: Convert to single-line lambda
|
|
// ACTION: Enable a trailing comma by default in the formatter
|
|
// ACTION: Introduce local variable
|
|
// ACTION: Move lambda argument into parentheses
|
|
// ACTION: Replace with safe (this?.) call
|
|
// ACTION: Specify explicit lambda signature
|
|
// ERROR: Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type String?
|
|
|
|
fun String?.foo(a: String?) {
|
|
a.let { s ->
|
|
<caret>length
|
|
}
|
|
} |