Change .hashCode() to .bar() for some nullability fixes tests
Hash code can be no more used because in 1.3 we have nullable extension. This fixes two wrap with safe let call tests and one surround with null check test.
This commit is contained in:
@@ -6,4 +6,6 @@
|
||||
// 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()
|
||||
fun Int.bar() = this
|
||||
|
||||
fun foo(arg: Int?) = arg<caret>.bar()
|
||||
Reference in New Issue
Block a user