mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
12 lines
452 B
Kotlin
12 lines
452 B
Kotlin
// "Wrap with '?.let { ... }' call" "false"
|
|
// WITH_STDLIB
|
|
// ACTION: Add non-null asserted (arg!!) call
|
|
// ACTION: Convert to block body
|
|
// ACTION: Enable option 'Function return types' for 'Types' inlay hints
|
|
// ACTION: Introduce local variable
|
|
// ACTION: Replace with safe (?.) call
|
|
// ERROR: Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type Int?
|
|
|
|
fun Int.bar() = this
|
|
|
|
fun foo(arg: Int?) = arg<caret>.bar() |