mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 00:21:32 +00:00
Converted from the relevant intention Reported cases: one-liners, whens Also, more exact caret detection in local inspection tests
13 lines
300 B
Kotlin
Vendored
13 lines
300 B
Kotlin
Vendored
// "Replace with safe (?.) call" "false"
|
|
// ACTION: Add non-null asserted (!!) 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()
|
|
} |