mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
^KTIJ-29052 Fixed GitOrigin-RevId: 3c28a6169b8e49c7d29a949f6bc7ed185507168e
13 lines
449 B
Kotlin
13 lines
449 B
Kotlin
// "Wrap with '?.let { ... }' call" "false"
|
|
// WITH_STDLIB
|
|
// ACTION: Add non-null asserted (arg?.hashCode()!!) call
|
|
// ACTION: Convert to run
|
|
// ACTION: Convert to with
|
|
// ACTION: Introduce local variable
|
|
// ACTION: Put calls on separate lines
|
|
// ACTION: Replace with safe (?.) call
|
|
// ERROR: Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type Int?
|
|
|
|
fun foo(arg: Int?) {
|
|
arg?.hashCode()<caret>.toLong()
|
|
} |