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:
Mikhail Glukhikh
2018-09-12 17:31:05 +03:00
parent 0f8b46b7d7
commit 81406a2bac
4 changed files with 12 additions and 5 deletions
@@ -1,6 +1,8 @@
// "Surround with null check" "true"
// WITH_RUNTIME
fun Int.bar() = this
fun foo(arg: Int?) {
run(fun() = arg<caret>.hashCode())
run(fun() = arg<caret>.bar())
}
@@ -1,8 +1,10 @@
// "Surround with null check" "true"
// WITH_RUNTIME
fun Int.bar() = this
fun foo(arg: Int?) {
if (arg != null) {
run(fun() = arg.hashCode())
run(fun() = arg.bar())
}
}