Replace hashCode usages in tests where it was supposed to fail on nullable receiver

Related to #KT-25039
This commit is contained in:
Ilya Gorbunov
2018-09-07 04:23:34 +03:00
parent 48fd8a63ee
commit 903976d9af
27 changed files with 35 additions and 28 deletions
+3 -2
View File
@@ -1,5 +1,6 @@
>>> val x: Pair<Any?, Any?> = null to null
>>> if (x.first != null) x.first.hashCode()
>>> fun Any.string() = this as String
>>> if (x.first != null) x.first.string()
error: smart cast to 'Any' is impossible, because 'x.first' is a public API property declared in different module
if (x.first != null) x.first.hashCode()
if (x.first != null) x.first.string()
^