c084eefb65
These actions became available more often some days ago
16 lines
391 B
Kotlin
Vendored
16 lines
391 B
Kotlin
Vendored
// "Wrap with '?.let { ... }' call" "false"
|
|
// WITH_RUNTIME
|
|
// ACTION: Add non-null asserted (!!) call
|
|
// ACTION: Replace with safe (?.) call
|
|
// ACTION: Convert to run
|
|
// ACTION: Convert to with
|
|
// ERROR: Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type Int?
|
|
|
|
fun Int.bar() {}
|
|
|
|
class My(var x: Int?) {
|
|
|
|
fun foo() {
|
|
x<caret>.bar()
|
|
}
|
|
} |