mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
14 lines
306 B
Kotlin
14 lines
306 B
Kotlin
// "Replace with safe (?.) call" "false"
|
|
// ACTION: Add non-null asserted (foo()!!) call
|
|
// ACTION: Replace with safe (this?.) call
|
|
// ERROR: Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type A?
|
|
|
|
class A {
|
|
fun foo() {
|
|
}
|
|
}
|
|
|
|
fun A?.bar() {
|
|
<caret>foo()
|
|
}
|