Files
2024-04-15 11:52:39 +00:00

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()
}