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

9 lines
414 B
Kotlin

// "Surround with null check" "false"
// 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 foo(arg: Int?) = arg<caret>.hashCode()